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: 
cafcptg2011
Creator
Creator

Challenge Color Background dimension (on a pivot table)

Hi,

I came across with a problem to set the background color of 2 dimensions of pivot table based on their max value.

I have attached a qvw file to help.

My pivot table:

Imag1.PNG.png

What I need:

Imag2.PNG.png

Can anyone please help me to accomplish that.

Thanks in advance,

CAFC

1 Solution

Accepted Solutions
Not applicable

Try expression like this:

=if(Type=only({<Type={"=rank(aggr(sum({< Article={'AAA'}>}Value),Type))=1"}>}Type) ,red())

regards

Darek

View solution in original post

5 Replies
Not applicable

Try expression like this:

=if(Type=only({<Type={"=rank(aggr(sum({< Article={'AAA'}>}Value),Type))=1"}>}Type) ,red())

regards

Darek

aaronnash
Partner - Contributor II
Partner - Contributor II

Dariusz hit the nail on the head (and beat me to it!)  If you would like your example back with Background Colors populated, it is attached.

Not applicable

I know, i prepared similiar one.

Only one thing i'am not sure - try to add listbox for size and then select one value. Why total is green?

cafcptg2011
Creator
Creator
Author

thanks to you guys! it works nice!

aaronnash
Partner - Contributor II
Partner - Contributor II

Dariusz does bring up a good point.  Is the filtered total coloring going to cause issues?