Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Conditional formatting in Straight table

Hi All,

I need the expression to change the cell background color according.

if its 0 - 40% is Red

41% - 70% is Yellow

71% - 100% is Green

Like below.

Thankyou all.

1 Solution

Accepted Solutions
maxgro
MVP
MVP

try with background color

if(yourexpression >0 and yourexpression <=0.4, rgb(255,0,0),

if(yourexpression >0.4 and yourexpression <=0.7, rgb(255,255,0),

if(yourexpression >0.7 and yourexpression <=1, rgb(0,255,0),

rgb(?,?,?)

)))

View solution in original post

6 Replies
Anonymous
Not applicable
Author

expand + sign of expression put if condition code in color option

maxgro
MVP
MVP

try with background color

if(yourexpression >0 and yourexpression <=0.4, rgb(255,0,0),

if(yourexpression >0.4 and yourexpression <=0.7, rgb(255,255,0),

if(yourexpression >0.7 and yourexpression <=1, rgb(0,255,0),

rgb(?,?,?)

)))

sunny_talwar

Is this what you are trying to do? PFA

Best,

S

Not applicable
Author

Yes Sunindia am trying for that

sunny_talwar

Have you looked at the attached qvw file? It will help you understand what needs to be done to create the same view.

Best,

S

Not applicable
Author

Thank you i got it