Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Silambarasan1306
Creator III
Creator III

Change Color by Measure - Qlik Sense

Hi Qlik Techies,

We have a color option (Color by Measure). It gives a the color variation like below I attached,

But my scenario is, instead of the blue I need to change the color as Green. So, it should get varies from green to red.

Is it possible..??

17 Replies
arulsettu
Master III
Master III

devarasu07
Master II
Master II

Hi,

try to create master measure item (here u can easily define the color your value range.)

Capture.JPG

Setting Color in Master Dimensions and Measures

Qlik Sense: How to set custom colors by measure in a bar chart

also you can write if condition like below

if(sum(Sales)>100,rgb(127,255,127),rgb(255,127,127)) //use u r measure field and conditon -- qliksense put this expression in background color expression section

Thanks, Deva

Silambarasan1306
Creator III
Creator III
Author

Hey Deva,

it will give only two colors. But what I need is it should start with green and end with red. The color should be varied based on the value.

devarasu07
Master II
Master II

Hi,

try to enable custom color by dimension.

refer the screen shot

Capture.JPG

Chanty4u
MVP
MVP

you can enable custome colour by dimension   

here sometimes dimension will be selected different  ---- try to add the dimension which you want

and apply it will work.

Silambarasan1306
Creator III
Creator III
Author

Hey Devarasu,

This is not I'm expecting.

Please read the question properly.

Thanks,

luismadriz
Specialist
Specialist

ColorMix1 will work perfect for you.

The important part is calculation the borders for which the gurus just need to understand the measures your using to create a representation from 0 to 1.

I hope this helps,

Cheers,

Luis

devarasu07
Master II
Master II

Hi,

Suggested setting will give different color for each dimension value. when u have issue, better try to prepare some mock app with sample data and highlight your issue so that would be easy for others  to check and help you quickly.