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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to display column values in colours


Hi,

I have a expression in straight table as below

DueDays= = today()-aggr(Date(max(DateDue)),ID)

and the values in that column are

1,975

2,098

1,897

-20

-13

-21

and so on

I would to show The minus values with RED colour and the rest with BLACK. Is this possible?

Thanks.

1 Solution

Accepted Solutions
jerem1234
Specialist II
Specialist II

to find the rgb value, you can go to color tab and click one of the colors and then in the next window, click the window again. Then you can play around and see what colors give what rgb value (which is shown on bottom right as Red, Green, Blue).

A dark red color is:

rgb(140,0,0)

Hope this helps!

View solution in original post

25 Replies
jerem1234
Specialist II
Specialist II

Yep, check the + next to your expression, then under Text Color, put an expression like:

if(DueDays<0, red(), black())

Hope this helps!

Not applicable
Author

Thanks and I need to show the RED colour as VERY Dark RED is it possible?

simondachstr
Specialist III
Specialist III

Get the RGB code for your DARK red and replace red() with RGB(redval,yellowval,blueval)

Not applicable
Author

Thanks. I don't have RGB code for DARK red that is my problem.how to do this?

jerem1234
Specialist II
Specialist II

Yep thats possible, you can use the rgb() function instead of red(). So find the rgb values for the color you want then fill them in the rgb function:

For example:

rgb(100,100,100) will show grey.

Hope this helps!

Not applicable
Author

How can I get rgb() for DARK red as I don't have the code

jerem1234
Specialist II
Specialist II

to find the rgb value, you can go to color tab and click one of the colors and then in the next window, click the window again. Then you can play around and see what colors give what rgb value (which is shown on bottom right as Red, Green, Blue).

A dark red color is:

rgb(140,0,0)

Hope this helps!

Not applicable
Author


Thanks and this is working.

Not applicable
Author

Can I know what is Pie Popout and Text format ? when I opened plus sigh I can able to see these.