Pages

Monday, June 22, 2009

Calculating Sum in Each Group in iReport


To calculate the sum in each group in iReport, just do as shown in previous post Grouping in iReport. Now add in query, another field of which you want to take out the sum. For example see in figure below.


More...
Now create a new variable named SUM as shown in figure.



Now select and write the fields as shown in figure for variable SUM.



Now arrange all the fields as shown in figure and run the file.


Output:


2 comments: