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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

bar chart color based on threshold

hi all,

      i have my bar chart having threshold which shows avg(value).i had given the condition in the expression for the background color of bar chart like color blue if less than 400 else red.its working fine. pic1.png

But my question is can i show blue color on the bars(red) which are below the green line? that is like this

pic1.png

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See my solution in this discussion: Different color for a bar based on Reference Value


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See my solution in this discussion: Different color for a bar based on Reference Value


talk is cheap, supply exceeds demand
whiteline
Master II
Master II

Hi.

For almost static charts you can create two objects: background 'red' chart and transparent overlay 'blue' chart.

Another way, create additional Calculated dimension: ValueList(1,2)

And expression that splits the values:

=pick(rowno(), RangeMin(Value, 400), RangeMax (Value, 400)-400)

Not applicable
Author

Thank you..