Jump to content

Variables not summing within dataset


dnewsom

Recommended Posts

I'm working on updating a bunch of our reports to use the new table elements. I've got my dataset setup and everything looks like it's correct. I have a group setup within it and I am trying to create a variable that will sum a price for that group. I've got it setup with calculation sum, reset on the group and no increments.

When I put that variable in the group footer band of the table and all it reports is the value of the last row instead of the sum of that group. I've tried setting the evaluation time to auto, band, group and now but the result seems to be the same.

Any advice would be appreciated.

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

 hi,

I have tried the same and for me its working...check ur steps-->

Create a new variable say PriceSum

Variable class type--> whatever u want(Integer/BigDecimal)

calculation type --> sum

Reset Type--> group

Reset group --> ur group name

Increment type--> none

variable expression --> your field name(price)

thats it.

and use this field.

 

hope this help you.

 

-Shainaz

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