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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

requirement

i have a bar chart which shows some negative values and some positive

what I want now that positive values shud be displayed in green color and negative values in red color,

Labels (1)
4 Replies
tresB
Champion III
Champion III

Use background expression something like:

If(Sum(Value)>0, Green(), Red())

Anonymous
Not applicable
Author

thanks ,where shud I put this condition ,

where I have written the expression?

jonathandienst
Partner - Champion III
Partner - Champion III

Click the +  next to the expression in the chart properties and set a colour expression for the background colour. Something like

    If(...your expression here... < 0, Red(), Green())

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
tresB
Champion III
Champion III

Check the screen shot. Click on the 'Background Color'.

Capture.JPG