Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Shane
Contributor
Contributor

Expression

Hi

Im looking to set colour for my pivot table but Only on the totals. Is there a specific expression for this? 

Labels (2)
1 Reply
JGMDataAnalysis
Creator III
Creator III

You can use the Dimensionality function to apply color to the measure cells based on the position of the dimension. For example, for the values ​​of the Grand Total, the Dimensionality function returns 0 (zero).

The background color expression associated with the measure of the pivot table in the screenshot is as follows:

 

If(Dimensionality() = 0, LightBlue(), If(Dimensionality() = 1, LightCyan()))

 

QlikCommunityChallenge_Dimensionality.PNG