Skip to main content
Announcements
The way to achieve your own success is the willingness to help somebody else. Go for it!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Barchart Colors based on Values

Hello Experts,

I have the following scenario, I am showing all students marks in bar chart, I would like to display Highest score in Green color, lowest score in Red color, rest all in regular gay color. how to give the color code?

I have used Rank function, but with this I can show only either Highest or Lowest color change not both at once. please help me.

Thanks

San

1 Solution

Accepted Solutions
MarcoWedel

Hi,

one solution could be:

QlikCommunity_Thread_143369_Pic1.JPG.jpg

QlikCommunity_Thread_143369_Pic2.JPG.jpg

When using the Min/Max approach, you have to compare against the TOTAL min or max.

hope this helps

regards

Marco

View solution in original post

5 Replies
jpapador
Partner - Specialist
Partner - Specialist

On the expression tab hit the "+" next to the expression and you will see and option called background color.  Enter your expression there.

If(Score = Max(Score), Green(), If(Score = Min(Score), Red(), RGB(125,125,125)))

You could also use rank in place of min and max

Anonymous
Not applicable
Author

Hi,

In Background color of the dimension/expression please give below syntax:

= If(Grade= 'Highest', RGB(168, 189, 11),

If(Grade= 'Lowest', RGB(228, 31, 31),RGB(125,125,125)))

Hope it helps

Cheers

Neetha

MarcoWedel

Hi,

one solution could be:

QlikCommunity_Thread_143369_Pic1.JPG.jpg

QlikCommunity_Thread_143369_Pic2.JPG.jpg

When using the Min/Max approach, you have to compare against the TOTAL min or max.

hope this helps

regards

Marco

Not applicable
Author

Awesome , Thank you Marco.. 🙂

Also, Thank you All 🙂

MarcoWedel

You're welcome

Regards

Marco