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

Announcements
Week 2: Presenting "Automate Sucess" and "Integration for Innovation" - WATCH NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
CasperQlik
Creator
Creator

Color bar chart without losing legend

Hi Qlik Community

How do I specify colors on a bar chart with multiple expressions without losing the legend? See my chart below.

If I use color by expression the legend disappears and that is not acceptable. 

Skærmbillede 2025-04-28 112940.png

 

Any help is appreciated

Casper

1 Solution

Accepted Solutions
CasperQlik
Creator
Creator
Author

I found a solution that satisfies my needs.

I created master measures for each expression in my chart. The master measure allows you to pick a color. Then I simple substituted my chart expressions with the master measures, and I have the same values with the desired colors while the legend remains.

View solution in original post

2 Replies
henrikalmen
Specialist II
Specialist II

It's really frustrating, but that's unfortunately the way things are, and here's the official explanation: https://community.qlik.com/t5/Official-Support-Articles/Legend-will-be-disabled-when-The-expression-...

See for example this thread for some ideas: https://community.qlik.com/t5/Visualization-and-Usability/Color-Expression-and-Chart-Legend/td-p/139... 

CasperQlik
Creator
Creator
Author

I found a solution that satisfies my needs.

I created master measures for each expression in my chart. The master measure allows you to pick a color. Then I simple substituted my chart expressions with the master measures, and I have the same values with the desired colors while the legend remains.