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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
tomhovens
Contributor II
Contributor II

Different barcolors

Dear Qlikviewer,

how could I give the red bars different colors in the bar, depending on an other field

Labels (1)
5 Replies
Anonymous
Not applicable

Tom,

Go to your expression, clic on [+] icon to expand, and edit the background color, like this:

=if(sum(Sales)>0, rgb(0,183,0), rgb(194,0,0))

Marc.

Anonymous
Not applicable

In the Chart Properties on the expression for the bar expand the +to the left of it and enter your required expression for back ground with something like :

     if ( [YouDim] = 'A' , Blue() , Yellow() )

Anonymous
Not applicable

Go to your expression. Click on the + symbol and give the condition for the color in the Background Color option.

Background  color.png

jpenuliar
Partner - Specialist III
Partner - Specialist III

This might prove useful:

tomhovens
Contributor II
Contributor II
Author

Not exactly what I tought, it has to be a sort of stacked bars and the Kontr-stplts depends the colour of the bar