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

Conditional Formatting in CrossTab


bittutqk

Recommended Posts

 

We have implemented a CrossTab which represents data for all the days in a month, we need to apply conditional formatting to the cell values. 

If cell value is >= 99 then green background color 

if cell value is between 95 and 99 the amber

if cell value is < 95 then red color

Can anyone please help for same.

Below is sample 

  2017-10-012017-10-02
Group 1Data 1100100
Data 298100
Group 2Data 18988
Data 2100100
Data 395100

 

 

 

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

It is possible to use conditional styles on a crosstab. By doing following:



  1. Create your crosstab
  2. Select the text field in the crosstab outline
  3. Apply a conditional style using the appearance settings of the textfield.


For the creation of the conditional style you can use the variables in the crosstab by selecting Crosstab in the left bottom side of the expression editor. After clicking on crosstab you should see the different variables used in the crosstab. A general reference to conditional styles can be found in the jaspersoft manual (a quick internetsearch did provide me with this link: https://community.jaspersoft.com/blog/conditional-colors-fields-jasper-studio-601-example-sceenshot-and-jrxml ).



Hope this helps.



Kind regards.


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