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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help in Formula - Gauge Light

Hi friends,

For display of traffic gauge lights, i am using the formula where

0 - Green

1-Amber

2-Red

=If((Column(3)/Column(2))*100 < '0%','0',If((column(3)/column(2))*100 > '0%' and (column(3)/column(2)) < '5%','1','2'))

But when the condition is 0%, it should show green but it is showing red.

Can someone help me with formula?

Regards,

KC

11 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

=If(Column(3) / Column(2) < 0 Or Column(2) = 0, 0,

  If(Column(3) / Column(2) < 0.05, 1, 2))

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Thanks all