Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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

1 Solution

Accepted Solutions
Gysbert_Wassenaar

See attached example.


talk is cheap, supply exceeds demand

View solution in original post

16 Replies
prashantbaste
Partner - Creator II
Partner - Creator II

Hi Sasi,

When you add dimension, you can see   , you can click on it and will get some more options  as -

Click on 'Background Color' option & write condition as -

If(Period='2013',Green(),If(Period='2014',Red()))

It will show color in background.

Hope this will be helpful for you.

--

Regards,

Prashant P Baste

vardhancse
Specialist III
Specialist III
Author

Hi,

Not based on 2013 and 2013, we have one expression and the condition is 2013 Vs 2014

tamilarasu
Champion
Champion

Hi,

Can you post sample data?

prashantbaste
Partner - Creator II
Partner - Creator II

Then same thing you need to do in expression -

In 'Background Color' of expression, you can write the condition as -

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

I hope now I have made right assumptions...!

Is this the solution that you were looking at?

--

Regards,

Prashant P Baste

vardhancse
Specialist III
Specialist III
Author

PFA sample QVW

vardhancse
Specialist III
Specialist III
Author

Can any one help me out..

gwassenaar

Gysbert_Wassenaar

Add the conditional color expression to the dimension Background Color setting instead of that of the chart expression.


talk is cheap, supply exceeds demand
tamilarasu
Champion
Champion

Hi Sasi,

Check out the below attachment.

Capture.PNG

vardhancse
Specialist III
Specialist III
Author

My requirement is

if value of 2013 is > 2014, then that value should be green, similarly wise versa.