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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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.