Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

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

Re: Comparing values between 2 columns in table for color expression

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

Re: Comparing values between 2 columns in table for color expression

Thanks, it worked!

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

Re: Comparing values between 2 columns in table for color expression

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()

Community Browser