Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Krish
Contributor III
Contributor III

Color code a stacked bar chart based on value

Hi,

      I am trying to create a Stacked bar chart and color code the values based on below criteria.
  When the measure value is 100.0 then green, if it between 90 and 99.9 then blue and red when the value is less than 90. How can this be achieved in stacked bar chart.

 

Labels (1)
1 Solution

Accepted Solutions
Or
MVP
MVP

Nest two If() statements, same as you would with any other condition in Qlik, e.g.
If(Something,Red(),If(SomethingElse,Blue(),Green()))

View solution in original post

6 Replies
Or
MVP
MVP

Or_0-1640179403169.png

 

Krish
Contributor III
Contributor III
Author

I am sorry. Forgot to mention. This is on QlikView.

Or
MVP
MVP

Or_0-1640258324623.png

 

Krish
Contributor III
Contributor III
Author

Thanks for the response. How to write the condition when the value is between 90 and 99?

Or
MVP
MVP

Nest two If() statements, same as you would with any other condition in Qlik, e.g.
If(Something,Red(),If(SomethingElse,Blue(),Green()))

markwood
Contributor II
Contributor II

I'm trying to implement on my website : https://modhappy.com/