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

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

How to write condition on Bar graph?

Hi all,

I need to create a bar graph   in which salary is a dimension.

If salary > 10000 , then I need to show in red or green.

Please post you answers.

--- Arun

4 Replies
ramoncova06
Partner - Specialist III
Partner - Specialist III

under the expresion it has a plus sign "+" click on it to expand it, under background add the condition if(If salary > 10000, red(), green())

Not applicable
Author

I don't know why you need to add salary as a dimension.

But if you want to add conditional colouring based on salary, you can go to Chart properties->Expression->expression(click on + icon in expression)->Background Colour -> Definition and write condition as per below example.

=If(Sum(UnitPrice/1000) <= 20,LightRed(),if(Sum(UnitPrice/1000) <40,Yellow(),LightGreen()))

Not applicable
Author

Thanks all... Its helpful

vardhancse
Specialist III
Specialist III

If you are okay with the solution, please mark the thread as correct answer. So that it might be helpful to others