Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
nikita42
Partner - Contributor III
Partner - Contributor III

How do I add conditional colours to the dimension values in pivot chart?

I have a table comparing current location to target location. I want to colour the cells where the current <> target in red. How do I do this?

FunctionCurrent LocationTarget
ALondonLondon
BBangaloreMumbai
CGlasgowLondon
DBangaloreBangalore

In this table, I would want to colour rows B and C in red.

1 Solution

Accepted Solutions
Peter_Cammaert
Partner - Champion III
Partner - Champion III

Yes, it does. We have no idea what table you are referring to, and it works on all of mine. See attachment.

Conditional Colors thread206487.jpg

Follow Sunny's suggestion if you want a solution that works for you as well.

Best,

Peter

View solution in original post

12 Replies
sunny_talwar

May be something like this for background color:

=If([Current Location] <> Target, Red(), Green())

nikita42
Partner - Contributor III
Partner - Contributor III
Author

I tried that, but it doesn't work on a table.

sunny_talwar

Would you be able to provide a sample?

richard
Partner - Creator
Partner - Creator

Have you tried this on the expressions?

pooja_sn
Creator
Creator

=if(not match([Current Location],[Target]),Red(),Green())

nikita42
Partner - Contributor III
Partner - Contributor III
Author

I've attached a sample table. I need to colour all rows where the location category <> Target.

Thanks!

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Yes, it does. We have no idea what table you are referring to, and it works on all of mine. See attachment.

Conditional Colors thread206487.jpg

Follow Sunny's suggestion if you want a solution that works for you as well.

Best,

Peter

nikita42
Partner - Contributor III
Partner - Contributor III
Author

For some reason, this just isn't working on my actual table. Could there be some options in the presentation or style tabs that need to be checked/unchecked?

nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II

Like this?

!