Skip to main content

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Qlik Cloud Maintenance is scheduled between March 27-30. Visit Qlik Cloud Status page for more details.
cancel
Showing results for 
Search instead for 
Did you mean: 
Subba55
Contributor III
Contributor III

How to give colours in expression

Hi guys,

I have a bar chart, I want to show colour in measures, I have two measures,

I want to show one measure in orange and another measure blue.

How to write expression in colours.

Please help me.

Thanks in advance.

Regards,

Subba Reddy

2 Replies
Vegar
MVP
MVP

Assuming you have a bar chart with a dimension names "Gender". If you need a conditional color statement you can do like this:

If(Gender='Female', rgb(255,192,203),If(Gender='Male',rgb(137,207,240), Lightgray())

 

Jayavignesh
Contributor III
Contributor III

You can also add the expression into master measure and use colur by value option to set colors.