Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Chart: Bars in different colors

Hey Guys,

i have a problem with a specific chart.

It looks like this:

Balken1.jpg

What i need is, that the bar changes the color, when it is negative. The prefered solution should look like this:

Balken2.jpg

Positive values black, negative red.

I tried it with some formulas, but it does not work.

Somebody who have an idea?

Thank you very much in advance!

1 Solution

Accepted Solutions
kji
Employee
Employee

Make a background color expression if(Value<0,Red(),Black())

View solution in original post

5 Replies
kji
Employee
Employee

Make a background color expression if(Value<0,Red(),Black())

Not applicable
Author

Thank you for your answer!

Unfortunately it does not work. If i try so, every bar gets red, positive ones included.

I have to integrate the formula here, right? ->

Chart properties -> Colors -> Colors 1 - 6 *Select first color* -> Integrate it under basic color formula

kji
Employee
Employee

Sounds like you setting a calculated color for the palette which will not work. You have to set the Background Color Expression (Expression tab, hit the + next to the expression in the expression list, select Background Color)

Not applicable
Author

Oh, okay, my fault. (My QlikView Version is not in english) Now it works! Thank you very much!

mvaugusto
Creator
Creator

it works for me!!

Thanks