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

Groups with subtotals, is there an esier way?


gregory.west
Go to solution Solved by zh3ntil,

Recommended Posts

I have a report is Jasper Studio.  The report is sorted on part_number, and has a group (Group1) based on part_number.  I have a variable Sum_OO which is:

Name:  Sum_OO

Value Class Name:  java.lang.Double

Calculation:  Sum

Expression:  $F{qty}-$F{ship}

Initial Value Expression:

Increment type: [Group] Group1

Incrementer Factory Class Name:

Reset Type: [Group] Group1

What happens is on the Group1 footer I get $V{Sum_OO} printed, but it only contains the last calculation.  Not the total for the group (or the total for the report).

 

What am I doing wrong, I agree this can not be this hard.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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...