# New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

New Contributor

## 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
Honored Contributor II

## Re: Conditional Colors positive and negative variance values

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))

2 Replies
Honored Contributor II

## Re: Conditional Colors positive and negative variance values

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))

New Contributor

## Re: Conditional Colors positive and negative variance values

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

Thanks again my friend,

Rod