Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
yogitamehta10
Creator
Creator

color coding for table

HI ALL,

i was writing this expression for color coding  i'm doing something wrong ,value is the Expression Label and my values are in %

if(value<-5,RED(),
If(value<=-5 and TS% <=-2.5 ,RGB(255,99,71),
if(value<=-2.5 and value<0.5,RGB(205,92,92),
if(value<= -0.5 and value<0.5,
RGB(255,255,255),
if(value <= 0.5 and value <2.5,RGB(154,205,50),
if(value <= 2.5 and value <5,RGB(127,255,0),
if(value > 5,RGB(0,128,0))))))))

TIA

5 Replies
sunny_talwar

What is wrong with it?

yogitamehta10
Creator
Creator
Author

it seems to be some issue

sunny_talwar

Hahaha what is the issue Yogita?

yogitamehta10
Creator
Creator
Author

I meant is my syntax right ?because it  shows  error in expression.

sunny_talwar

Don't see an issue with the syntax, not sure if TS% is needed or not, but that is the only thing which seems little out of line...