Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Conditional Colors positive and negative variance values

Hello,

I wonder if someone could help as I've given up with this one after hours playing with it.

I'm trying to have a tables shoe red values if a variance percentage value is above 25% or below -25%.

I've tried with the following example without success:

if($(hotel_spend_avg_ytd_yoy)<-0.25,RGB (170,57,57),RGB(87,149,50)),

if($(hotel_spend_avg_ytd_yoy)>0.25,RGB(170,57,57),RGB(87,149,50))

When I try either of those individually they work with the expected behavior just fine. When stringed together the formula says "OK" but neither color appear.

Any insight/help you can provide me with will be greatly appreciated!

1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hi

try this one

if($(hotel_spend_avg_ytd_yoy)<-0.25 or $(hotel_spend_avg_ytd_yoy)>0.25,RGB (170,57,57),RGB(87,149,50))

View solution in original post

2 Replies
lironbaram
Partner - Master III
Partner - Master III

hi

try this one

if($(hotel_spend_avg_ytd_yoy)<-0.25 or $(hotel_spend_avg_ytd_yoy)>0.25,RGB (170,57,57),RGB(87,149,50))

Anonymous
Not applicable
Author

Thank you SO MUCH! It was "or"!!!! arrrrghhh.

Thanks again my friend,

Rod