Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
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
tresesco
MVP
MVP

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
tresesco
MVP
MVP

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

Capture.JPG