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

Dimension Colours

How do I define a colour for a specific dimension in a bar chart ?

eg In the pic below.... I want to define a colour for 'SLA Breached' and for 'Unknown', etc.....

The reason being, sometime 'Unknown' end up as being first in the list, then it takes up the first colour and so on.  Now I want it to keep it's colour no matter where in the list it falls.

Capture.PNG

1 Solution

Accepted Solutions
sushil353
Master II
Master II

in expression click on + sign and then write condition like

pick(Match(Dimension,'SLA Breached','Unknown','Awaiting information','Danger'),color(1),color(2),color(3),Color(4))

you can define these color in color tab.

HTH

Sushil

View solution in original post

6 Replies
sushil353
Master II
Master II

in expression click on + sign and then write condition like

pick(Match(Dimension,'SLA Breached','Unknown','Awaiting information','Danger'),color(1),color(2),color(3),Color(4))

you can define these color in color tab.

HTH

Sushil

vishsaggi
Champion III
Champion III

Hi Bradley,

Can you upload you sample app we can work on.

Thanks,
V.

Not applicable
Author

Hi Bradley,

I just tried Sushil Kumar's suggestion

Have a look at attached qvw.

Not applicable
Author

This is so COOL Sushil. 

Thanks man !!! It works.  Well done !!!!

Appreciate your help !!!!

sushil353
Master II
Master II

Cheers !!!

there is one shortcut for this:

color(Match(Dimension,'SLA Breached','Unknown','Awaiting information','Danger'))

Not applicable
Author

Great !  I'll give that a try as well !!