Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using traffic light style gauge based on text value

Hello and happy new year,

I just started with QV and after browsing the web for a while I m still stuck with what seems to be a basic function.

I m using the traffic light style gauge in QV 11.0

My dashboard is about projects and I would like to see a green light if the project is ON TIME / orange for SHORTLY DELAYED / and red for LATE

How do I set that up ???

In the Presentation tab ? in the Expression tab ?

Thanks for your help.

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You could use the match function to translate the text value to a number and set the boundaries of the traffic light accordingly.

match( expresssionhere , 'ON TIME','SHORTLY DELAYED','LATE')

If expressionhere is ON TIME the match function will return 1, if it's LATE it will return 3, etc. expressionhere can be a field or an expression used to calculate your text value.


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You could use the match function to translate the text value to a number and set the boundaries of the traffic light accordingly.

match( expresssionhere , 'ON TIME','SHORTLY DELAYED','LATE')

If expressionhere is ON TIME the match function will return 1, if it's LATE it will return 3, etc. expressionhere can be a field or an expression used to calculate your text value.


talk is cheap, supply exceeds demand