Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
wonkymeister
Creator III
Creator III

Change the background colour of a single bar across 3 measures

Hi all,

I have a single bar chart, that contains 3 expressions, count of greens, count of ambers, count of reds where the colours are values of one field – health_score (how many metrics have a health score of green, amber and red)

 

Ie for Amber’s

count({$<

               health_score = {'Amber'}

>}metric_id)

/

count({$<

               health_score = {'Green', 'Amber', 'Red'}

>}metric_id)

Bar Chart.PNG

 

What I would like to do is change the colour portion of the bar that has the green expression to green, the amber expression to amber and the red expression to red. Ive tried changing the colour default to by expression and tried various bits of set analysis /nested Ifs but nothing works.

Any ideas?

Labels (1)
1 Solution

Accepted Solutions
JordyWegman
Partner - Master
Partner - Master

Hi Wonky,

Try to create three measures and put them in your master items. Give your master items then a color for each one. Add these master measures to the bar chart and create a stacked bar chart. This should work for you.

Jordy

Climber

Work smarter, not harder

View solution in original post

2 Replies
JordyWegman
Partner - Master
Partner - Master

Hi Wonky,

Try to create three measures and put them in your master items. Give your master items then a color for each one. Add these master measures to the bar chart and create a stacked bar chart. This should work for you.

Jordy

Climber

Work smarter, not harder
Kashyap_R
Partner - Specialist
Partner - Specialist

Hi

Create a master measure and use it in the chart 

Hope this helps

Thanks

Thanks and Regards
Kashyap.R