Jump to content

Can be to sum text values in a jasper report ?


solene.masseron

Recommended Posts

Hello everyone

I’m a little desperate. I try to sum up the number of yes and no that there is in my transport stop table that is in database and I do not understand what is wrong with it.

I created a variable configured this way:
name value class: java.lang.integer
calculation: sum
expression:IF($F{arret_dorm} ="Non",1,0)
intimate value expression: 0
increment type: none
type réinitialisatio common group

and then I put this variable in the header detail, knowing that I have a band.
The problem is that it always appears 0 as a value. If I set 1 to the initial value, it remains 0.

I’m not sure what to do any help will be welcome

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