Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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 (3)
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