Thursday, January 2, 2014

How to Subtotals in groups in iReport

Okay if you are reading this blog you must have learned to create groups in ireport. so lets continue to sum integers in groups. Here is what we want at the end.

here this is a group that is ordered by district name "Gorkha" . so we will add the middle column. Okay lets get started. 

1. create a variable. and go to its property. 
here district wise is my group name. and $F{id} is the field that i want to SUM.
now drag that varisble to footer of the group . as following image.
now preview the report. you get the desired result. 

thank hope that helps. 

0 comments:

Post a Comment