I'm using JasperReports with iReport to generate exports on my website.
Until now I successfully created many 'basic' reports with this format :
Title
Number | date | value
1 | 2014-08-10 | 42 `// with this part beeing programaticaly repeated`
2 | 2014-08-15 | 84
3 | 2014-09-05 | 24
What I need to do now, is to add a sum line for each months like this :
Title
Number | date | value
1 | 2014-08-10 | 42
2 | 2014-08-15 | 84
**SUM | 2014-08 | 126** `// I want to add this line at the end of every month`
3 | 2014-09-05 | 24
**SUM | 2014-09 | 24**
I haven't been able to find anything on internet because I don't know how to formulate my question. Everything I tried just add the 'sum column' after each basic column witch isn't what I'm trying to do.
Is there a functionality I missed or a trick to realize this ?
EDIT :
It isn't a Java but a JasperReports/iReport problem. Once I know how JasperReports allow to do it, I'll find how to do it in Java.