Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Luis_Branco
Contributor
Contributor

Colour change in a bar chart form the previous value

Hi there!

I need your help.

I want to change the color of a bar chart using the previous vaiue. For example, from 2012 to 2013 i need to colour my bar with green if the value from 2013 is higher in 2012 and if the oposite i want a red colour on it.

Thanks for the support.

Labels (1)
4 Replies
Channa
Specialist III
Specialist III

you have year slection or it is for all years

Channa
Luis_Branco
Contributor
Contributor
Author

It is from all years (from 2012 to 2019). Ty

 

 

Channa
Specialist III
Specialist III

IF(Sum(Sale) >Above(Sum(Sale)),red(),green())

 

try like this in your color expression

Channa
Luis_Branco
Contributor
Contributor
Author

It works!!
Thank you for your time Channa!