logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
beppino21  
#1 Posted : Tuesday, September 1, 2015 11:37:50 AM(UTC)
beppino21

Rank: Newbie

Groups: Registered
Joined: 7/8/2015(UTC)
Posts: 3
Italy

Thanks: 1 times
Hi,

I need to compute the percentage of margins in a report that aggregate, in many ways, the detailed rows of sales documents.
How can I compute the % of margin in a correct way?
It shuld be nice use the aggregate field of the output... but any suggestion is welcome.

Many thanks in advance,
Beppe
epf  
#2 Posted : Tuesday, September 1, 2015 1:09:30 PM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
Did you have a look at the new feature in 1.8 ?
Cell Script:
Custom scripts can be defined on a report element to process values after the Summary, Page and Data tables have been built in the model.
These scripts can be used to customize cell display and values or to perform complex calculations.
Check sample: 50-Cell Script - Progression and running totals

or also

Model Scripts:
For SQL Data Source, a 'Pre Load Script' can be defined in the model to modify the model before the database load and a 'Post Load Script' can be defined in the model to modify the result table after the database load.
Finally, a 'Final Script' is available to modify the model after the complete load.
Check samples: 43-SQL Source with XML Google API

You have to understand the models and to write some C#, but it might be very powerful..
thanks 1 user thanked epf for this useful post.
beppino21 on 9/1/2015(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.