Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
nramirez
Contributor III
Contributor III

Color change based on Numberical Value range

I have a Gauge and would like to make my Colors on my bar chart match the ones from my Gauge.

I don't know what would be the best method to use or how my code should look like.  I was thinking about a nested If Statement, but don't know how I would write it.

What I'm trying to do is to set my colors the following way.

23.5 >   Green

18.1 >   Yellow

0      >   Red

Thanks in Advance

2 Replies
Not applicable

You can go the expression of the bar chart and change the background color as desired with the if condition.

if ( <expr> <= 25, green(), if <expr> > 25 and <expr> <50, blue()................................

nramirez
Contributor III
Contributor III
Author

Thank You.. Worked Perfectly.