Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Maciej29
Contributor III
Contributor III

if statement with Hexa colors

I'm looking for solution to get custom bar colors using expression if and hexa colors.

StatusColor
Received2d7fef
First Touch8d46ad
In Progresse05631
On Hold732477
Finished41a64f

 

Thanks in advance for any tip.

 

Labels (3)
3 Replies
mato32188
Specialist
Specialist

Hi Maciej,

you can define color by expression like

pick(match(Status,'Received','First Touch'),'#2d7fef','#8d46ad')

BR

m

ECG line chart is the most important visualization in your life.
Dalton_Ruer
Support
Support

If you are going to use Status in lots of charts throughout the application you can create a Master Dimension for Status. Then you can use the colors anywhere you use Status.

dimensioncolor.png

Maciej29
Contributor III
Contributor III
Author

Hi Dalton,

I need it only for single chart and it's vizlib bar chart . So I would stand with using expression in this case.