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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
mhassinger
Creator
Creator

Pivot Table - different measure for each dimension/row

Hello!

I have a pivot table with three dimensions. Some of the measures in the table are only relevant in the context of certain dimensions. So basically I want to be able to not calculate a measure (or calculate it differently) depending on the dimension/row.

So for example, in this pivot mock up I wouldn't want to see Sum(Sales) unless it's in a row that's for the city dimension. Obviously my real life use case is not as clean cut as a geo hierarchy.

+ Canada                       N/A
- USA                                N/A
      + NY                            N/A
       -  IL                             N/A
              Chicago             Sum(Sales)
              Springfield       Sum(Sales)
        

 

 

 

Labels (2)
1 Solution

Accepted Solutions
Lisa_P
Employee
Employee

You can use the Dimensionality() function.

If(Dimensionality()=3, Sum(Sales), 'N/A')

View solution in original post

2 Replies
Lisa_P
Employee
Employee

You can use the Dimensionality() function.

If(Dimensionality()=3, Sum(Sales), 'N/A')

mhassinger
Creator
Creator
Author

Perfect, thank you!