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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
eva_maria
Contributor III
Contributor III

expression display as traffic light

Need to represent the expressions in the graphic that I have attached like traffic light gauge with 3 segments (red, yellow and green).

For example, first expresion (Q1_J) value will be:

Red: if Q1_J <avg(Q1_J) of all employees with same value in field “pto”

Yellow: if Q1_J =avg(Q1_J) of all employees with same value in field “pto”

Green: if Q1_J >avg(Q1_J) of all employees with same value in field “pto”

Regards

1 Solution

Accepted Solutions
vvira1316
Specialist II
Specialist II

Light.PNG

expression for avg

Avg(TOTAL <pto> [J_I1])

Light Value setting

if ([J_I1] < Avg(TOTAL <pto> [J_I1]), -1,
if ([J_I1] = Avg(TOTAL <pto> [J_I1]), 0, 1))

gauge setting Min = -1, Max = 1

Red for -1, Yellow for 0 and green for 1

Uncheck autosegment

View solution in original post

4 Replies
sunny_talwar

Like this?

Capture.PNG

=If(Q1_J < Avg(TOTAL <pto> [J_I1]), LightRed(),

If(Q1_J = Avg(TOTAL <pto> [J_I1]), Yellow(), LightGreen()))

vvira1316
Specialist II
Specialist II

Light.PNG

expression for avg

Avg(TOTAL <pto> [J_I1])

Light Value setting

if ([J_I1] < Avg(TOTAL <pto> [J_I1]), -1,
if ([J_I1] = Avg(TOTAL <pto> [J_I1]), 0, 1))

gauge setting Min = -1, Max = 1

Red for -1, Yellow for 0 and green for 1

Uncheck autosegment

eva_maria
Contributor III
Contributor III
Author

Hi! Vijay, that's perfect, exactly what I was looking for.

Thanks for your invaluable help and for your time

regards.

eva_maria
Contributor III
Contributor III
Author

Hi Sunny.

I appreciate your answer because I didn't know the way that you proposed

Thaks for your help and your time

Regards