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: 
soniasweety
Master
Master

Colour based on value

Hi all,

I have a straight table  with one measure  that result is like below

1

2

3

4

5

6

7

8

9    like that  I need to give this bg colour   light to dark         how can I give?

22 Replies
sunny_talwar
MVP
MVP

Check with this

=ARGB((MAX(TOTAL TimeLefttoBreachSLA) - Min(TOTAL TimeLefttoBreachSLA))/255 * TimeLefttoBreachSLA, 255, 0, 0)

soniasweety
Master
Master
Author

Yes sunny its working   could you please explain how it is working  ?

brunobertels
Master
Master

Hi

Argb() has 4 values to define color .

First value give transparency , the others give RGB colors.

So Sunny use a mesure in the ARGB function to define transparency depending of a range between the max and min mesure of TimeLefttoBreachSLA divided by 255

I didn't know this method so Thanks Sunny

Bruno