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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
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