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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Indicators with strings

Hi.

I have this expression

if(Number1  <0, 'OK',

if(Number2< 31, 'Not Ok', 'OK2'))

Now i wanna do this with an traffic light indicator? i dont know how to say this in english.

is like the blue or red light

if OK = red

etc...

how i do this? it works with numbers but it doesn't work with strings.

Thank ya!

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached example.


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Click on the + sign in front of the expression and select Background Color. Then enter an expression to calculate a color. Something like =pick(match(MyField,'Ok','Not Ok','OK2'),lightgreen(),lightred(),lightblue())


talk is cheap, supply exceeds demand
Not applicable
Author

Ok thank you, but i was speaking about something like this

qlik2.png

Not applicable
Author

Did you understand?I dont know if i was clear

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached example.


talk is cheap, supply exceeds demand
Not applicable
Author

Thank you