therrick_1 Posted August 14, 2015 Share Posted August 14, 2015 I'm using Studio 6.1 and trying to do conditional formatting with a product Weight field. I want to set a range such as 50-75. If the Weight is between that range it's colored yellow, if Weight above that range it's colored red, and if Weight below that range it's colored green. I'm not sure where to put the Condition and how to Apply it. Has anyone done something similar and can help me? Link to comment Share on other sites More sharing options...
Solution hozawa Posted August 16, 2015 Solution Share Posted August 16, 2015 Use Conditional Style.http://community.jaspersoft.com/wiki/how-apply-conditional-formatting-your-text-fields Link to comment Share on other sites More sharing options...
therrick_1 Posted August 17, 2015 Author Share Posted August 17, 2015 That worked, thanks. I created a Style and then created 3 Conditional Styles under it. Each Conditional Style had a test and set the color. Then I applied the main Style to my field in the report. Had much trouble comparing BigDecimals, so I changed them to Doubles instead. Link to comment Share on other sites More sharing options...
devmikef Posted September 15, 2021 Share Posted September 15, 2021 For anyone else that feels lost with the "approved" answer, I found this 5 minute video on conditional formatting super helpful Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now