Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to chage the colour of guage chart based on condition?


Hi,

I have a gauge chart with below expression:

Avg(CaseStats)

the value of Avg(CaseStats) has 243. I have to write a condition to show the values as in green colour if Average <90 it should show green and the values above 90 should show Red

how can I change the expression can anyone help me please?

Thanks.

1 Solution

Accepted Solutions
15 Replies
Not applicable
Author

please see attached as this is today value 243 and based on my condition it should show the colour as red

SunilChauhan
Champion II
Champion II

go to chart properties

uncheck autowidth segment if not

-> presentation change the colour of segment 1 and segment 2

hope this helps

Sunil Chauhan
SunilChauhan
Champion II
Champion II

see the attched image for refrence

Segment color.JPG.jpg

Sunil Chauhan
Not applicable
Author

Thanks. Sorry I know this place to change. I need the expression to meet the condition. Please help.

SunilChauhan
Champion II
Champion II

in segment 2 text box you can write 90

Sunil Chauhan
SunilChauhan
Champion II
Champion II

Segment color.JPG.jpg

Sunil Chauhan
Not applicable
Author

Thanks. for me it is not allowing. how can I change?

Not applicable
Author

Uncheck the Autowidth segments option on the lower left corner on the Presentation tab.

Anonymous
Not applicable
Author

Hi,

You can set % value in the segment. For example, if you want to set value for Average <90 then first you have to convert it into %. Something like below,

90/Avg(CaseStats)