Jump to content
We've recently updated our Privacy Statement, available here ×

subtotal by group at the end of a report


frblusso

Recommended Posts

Hello

I want to generate a report like in the example jasper.txt attached.

 so I define a group  "mygroup" in Ireport  and the detail band contains the detail of each name.

The problem is to generate AT THE END of the report a summary with SUBtotal for each group .

I defined a  variable Vtotal relied to field value with the parameter "reset type" = group and "reset group" = mygroup

If I put this Vtotal in  Summary band,  the total sum is displayed, but it is not a total for each group .

Is the only solution is to use 2 subreports , one for detail information and one for subtotal information?

Regards

 

Françoise

 

 

 

 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 4 weeks later...

hello

 

we tried this but the subreport in the summary section is never displayed because the datasource has no data to read. if i put the same subreport with the same parameters and datasource in the detail section the subreport is populated with the good datas.

I have the same problem if i use the last page section to put my subreport.

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

Im am fabridp and I have the same problem (topic:

Table summarizing totals) with the difference that I have GROUP/SUBGROUP to do "subtotals by subgroup at the footer main grouping". (N subtotal tables)

Can you help me with some detail using JRDatasource approach considering I am quite new with Jasper?

Thanks in advance

Fabri

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...