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: 
Not applicable

Comparing values between 2 columns in table for color expression

I have a table with the years as columns and the client name as rows. I now want that the text color is green when the sales are higher than previous year and red when they are lower.

There is also a totals column which I want to remain black.

Someone who have done this before?

Thanks in advance

3 Replies
sunny_talwar
MVP
MVP

You seem to be doing this in a pivot table, right? You can use Before/After function to compare one year to another year. Take a look here:

Missing Manual - Before() and After()

Not applicable
Author

Thanks, it worked!

Do you have an idea how i can exclude the totals this color function?

sunny_talwar
MVP
MVP

You can use Dimensionality() function to exclude the above color calculation for totals

How to use - Dimensionality()

The second dimension... or how to use secondarydimensionality()