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

Resetting a Sum or Count based on a Condtion


jgoddard

Recommended Posts

I'm trying to figure out a problem I'm having in a Jasper Ireport and can't seem to get it.  I have an integer variable that I want to increment by 1 if a certain condition is met.  The condition is:

$V{Current Result} > $V{Last Result} ? 1

and if the condition isn't met, I want it to reset to zero.

I realize that there is a sum function that you can set that resets on a group change, but I don't want it to reset on the group, only if the above condition isn't met- hope this makes sense.  Thanks in advance.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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