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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
vardhancse
Specialist III
Specialist III

Dimension Data conditional Format

Hi,

I am trying to change the color of the dimension in a pivot table based on one condition.

Dimension: Period

Value: 2013,2014

Condition:if(2013>2014),Green,Red

Can please let me know

16 Replies
vardhancse
Specialist III
Specialist III
Author

Hi Gysbert,

thanks for your reply, I want the result as below like which ever value in 2012/2013 was higher that color need to be green other should be Red

Conditional.JPG

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached example.


talk is cheap, supply exceeds demand
vardhancse
Specialist III
Specialist III
Author

Thank you so much Gysbert.

gautik92
Specialist III
Specialist III

Use this in Expression->Background Color or Text Color

=If((Sum({<Year='2013'>}Amount))>(Sum({<Year='2014'>}Amount)),Green(),Red())

vardhancse
Specialist III
Specialist III
Author

Hi solution provided by gwassenaar‌ was exactly my requirement.

vardhancse
Specialist III
Specialist III
Author

Hi Gysbert,

One more help is that if the value for 2012 and 2013 was blank it should show blank in the YOY, instead it is showing symbol.

can please help me out.

vardhancse
Specialist III
Specialist III
Author

Hi got it, added isnull function for the measure and all blanks were showing -