Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to display the different colors in Stacked bar?

I have a stacked bar chart with 3 dimensions and 1 expression. There are 2 stacked bars for one x-Axis value. I want to display different color for these 2 stacked bars. How to do that?

I have attacked example Qvw.

1 Solution

Accepted Solutions
sunny_talwar

May be an if statement like this:

=If(%Year = 2016,

  If(%Semester = '1st', Blue(), Green()),

  If(%Semester = '1st', Red(), Black()))

Capture.PNG

View solution in original post

5 Replies
sunny_talwar

May be an if statement like this:

=If(%Year = 2016,

  If(%Semester = '1st', Blue(), Green()),

  If(%Semester = '1st', Red(), Black()))

Capture.PNG

julian_rodriguez
Partner - Specialist
Partner - Specialist

Hello Pavhitra

May be this could work for you...

Please note the expression attributes.

Regards

Julian

Anonymous
Not applicable
Author

Where Should I Write the expressions?

sunny_talwar

Here

Capture.PNG

Anonymous
Not applicable
Author

Got it! Earlier I was trying in the colors tab. Couldn't do this.

Thank you so much.