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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Visual cues for text values

Hi:

I want to show green,red and yellow colors based on the text values.

If say status = G, display the cell in green color

if the status = R,display the cell in red color

If status = Y, display the cell in yellow color.

I have created straight table and used G,R and Y as expression since visual cues work only with numeric values

but cannot get the respective colors for G,R and Y.

Since Visual cues work only with numeric values, i have also tried to put the following in the expression

if (Status = 'G',Green(),red ())

 

or

if (Schedule = 'G',RGB(0,128,0),red ())

but not getting the right result.

Can you please help.

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

HI,

PFA file hope it helps you.

Regards,

Jagan.

View solution in original post

4 Replies
shree909
Partner - Specialist II
Partner - Specialist II

Hi,

when u go to the expression  u fiond a '+' sign , when u expand that u will see options to change the

1)text format

2)Text color

in text color u write the expression

if (Status = 'G',Green(),

if (status ='R' , red(),yellow())

jagan
Partner - Champion III
Partner - Champion III

HI,

PFA file hope it helps you.

Regards,

Jagan.

MayilVahanan

Hi

In the expression tab, you can see the '+' sign. By  clicking it, you can see background color, text color.. According to your requirement, choose any one of them, and put the expression like this

if (Status = 'G',Green(),red ())

hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Thank you all.

It worked.

Thanks for the sample.