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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Conditional color for pivot table

Hello,

I would like some help with an expression to get conditional color for my pivot table. If one of the products appears twice in this case "Shoes" then i would like the colors "green and yellow ' to be highlighted in yellow.

Example.PNG

Kind regards,

Esther

Labels (1)
1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

May be

=If(Count(TOTAL <Products> Colours) > 1,Yellow())

in Conditional Color.

Regards,

Antonio

View solution in original post

7 Replies
antoniotiman
Master III
Master III

May be

=If(Count(TOTAL <Products> Colours) > 1,Yellow())

in Conditional Color.

Regards,

Antonio

devarasu07
Master II
Master II

Hi,

try like this.

=if(Aggr(count ({<Colours=>}Products),Products)>1,Yellow(),White())

Capture.JPG

Anonymous
Not applicable
Author

Sorry I was not clear, my desired outcome is below.

retail.PNG

sunny_talwar
MVP
MVP

A little modification to Antonio‌'s expression should work for you

=Aggr(If(Count(DISTINCT TOTAL <Products> Colours) > 1,Yellow()), Products, Colours)

Or this

Aggr(If(Count(DISTINCT Colours) > 1, Yellow()), Products)

sunny_talwar
MVP
MVP

A little modification to antoniotiman‌'s expression should work for you

=Aggr(If(Count(DISTINCT TOTAL <Products> Colours) > 1,Yellow()), Products, Colours)

Anonymous
Not applicable
Author

Thank you, it works

Anonymous
Not applicable
Author

Thanks