Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
anushahegde
Contributor III
Contributor III

Coloring the bar chart

Hi all,

I have a bar chart with 2 measures. I want to customize the color of the bars based on measures. As per the requirement I need to have 2 colors. color for the first bar(first measure) should be blue and color of second should be light blue.

Is there any way to do it?

Thanks in advance

Anusha

1 Solution

Accepted Solutions
OmarBenSalem
Partner - Champion II
Partner - Champion II

Create ur measures as master measures and there you can define the color for each measure.

Exemple:

'll be creating 2 master measures: sum("car sales") and sum("commercial vehicle sales"):

Capture.PNG

Capture.PNG

Then, I will create a bar chart and use my 2 measures:

Capture.PNG

Result : (the colors are red and green as we specified when we created the 2 master measures:)

Capture.PNG

View solution in original post

7 Replies
manoj217
Creator III
Creator III

In Qlikview or Qliksense.

if it is qlikview means in expression background color option is there you have to give a condition.

tush
Creator II
Creator II

Hi,

    

     Create master item measure and give colour.


for more understanding please refer below link:-

Color by Expression

OmarBenSalem
Partner - Champion II
Partner - Champion II

Create ur measures as master measures and there you can define the color for each measure.

Exemple:

'll be creating 2 master measures: sum("car sales") and sum("commercial vehicle sales"):

Capture.PNG

Capture.PNG

Then, I will create a bar chart and use my 2 measures:

Capture.PNG

Result : (the colors are red and green as we specified when we created the 2 master measures:)

Capture.PNG

anushahegde
Contributor III
Contributor III
Author

Qliksense

anushahegde
Contributor III
Contributor III
Author

Thank you very much.

Let me try this

OmarBenSalem
Partner - Champion II
Partner - Champion II

It'll work and it's the only way to control measures color.

anushahegde
Contributor III
Contributor III
Author

Thank you very much for the help. It worked