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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Traffic Light Conditional Statement

I am having trouble getting my traffic light to display colors properly based on an IF condition

I would like the light to turn green if the actual/budget is greater than 85% and red if it's below 75%. Below is what I tried to make work.

if((Sum([Amount Actual])/Sum([Amount Budget]))>=.85,1
if(Sum([Amount Actual]/sum([Amount Budget])<.75,3,2)

Comments please!!!

1 Reply
Anonymous
Not applicable
Author

Can only check syntax, not the logic... You have two closing parenthesis missing (bold):

if((Sum([Amount Actual])/Sum([Amount Budget]))>=.85,1
if(Sum([Amount Actual])/sum([Amount Budget])<.75,3,2))