gregory.west Posted November 22, 2015 Share Posted November 22, 2015 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_OOValue Class Name: java.lang.DoubleCalculation: SumExpression: $F{qty}-$F{ship}Initial Value Expression:Increment type: [Group] Group1Incrementer Factory Class Name:Reset Type: [Group] Group1What 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 More sharing options...
hozawa Posted November 22, 2015 Share Posted November 22, 2015 Try setting the initial value. Link to comment Share on other sites More sharing options...
Solution zh3ntil Posted November 23, 2015 Solution Share Posted November 23, 2015 you don't need to give an increment type for this case. Try 'None' for increment type. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now