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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
hkg_qlik
Creator III
Creator III

Conditional Color Formating

Hi,

I want to color code the expression field (background color) based on the value range:

example:

if the cell value is >2 its green

if the cell value falls between = 2 and =1 its yellow

if the cell value falls between >1 and =-1 its red

Can someone help me with the syntax for the condition ?

Regards,

H

Labels (1)
2 Replies
sunny_talwar
MVP
MVP

May be this:

If(Expression < 1, Red(), If(Expression < 2, Yellow(), Green())

maxgro
MVP
MVP

maybe (I used the sum(Amount), change according to your expression)

if(sum(Amount2)>2,                                              Green(),

if(sum(Amount2)=2 or sum(Amount2)=1,        Yellow(),

if(sum(Amount2)>-1 and sum(Amount2)<1,   Red(),

                                                                                  Black()

)))