Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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

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

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

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