Jump to content
Changes to the Jaspersoft community edition download ×

suppress leading zeroes in a crosstab


jkeri

Recommended Posts

I created my first crosstab report and some of the cells have zero value and its printing a zero.. I want the cell to be blank if its a zero.

 

Im not a Java devloper, is there any way I can supress the zero values?

 

 

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I just checked my code, looks like the field i want is a measured field   $V{AMOUNT_MEASURE} == 0? "":$V{AMOUNT_MEASURE}     if the value  is zero then print blanks.

 

When i do this expression i get 'incompatiable operands types BigDecimcal and int'

 

 

Link to comment
Share on other sites

This is the correct EXPRESSION that i needed:                            new Boolean($V{AMOUNT_MEASURE}.toString().equals("0"))? " ":$V{AMOUNT_MEASURE}

 

This work... thank you for pointing me in the right direction and your time.

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