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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
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,

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