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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
NathanS2022
Contributor II
Contributor II

Pivot Table: Set the value or don't show the value in specific dimensions

Hello, I have the following table:

NathanS2022_0-1674065392175.png

 

I want the measures 5 and 6 to have a blank value or no value at all. Like this:

NathanS2022_1-1674065455954.png

 

I've tried using TOTAL and AGGR functions and also using Flags on load, with no success so far. How can I do this?

Labels (2)
1 Solution

Accepted Solutions
jbhappysocks
Creator II
Creator II

Hi I also don't really see why you want to keep 5 & 6 if you want to hide the value, you don't need it to get the totals. But if you have a good reason you can write

if(getobjectdimension(dimensionality()-1)<5,sum(VALUE),'')

If you only have a condition on dimensionality you users will be able to get around this by changing dimension order. And obviously you need to change the condition if your dimensions are not 1-6 but actual dimension names.

View solution in original post

3 Replies
pedrobergo
Employee
Employee

Hi @NathanS2022 

If you´re looking for not showing detailed values for Users, the only way is removing 5 and 6 fields from Pivot Table, because each level has a sum/total of below values.

[],

Pedro

jbhappysocks
Creator II
Creator II

Hi I also don't really see why you want to keep 5 & 6 if you want to hide the value, you don't need it to get the totals. But if you have a good reason you can write

if(getobjectdimension(dimensionality()-1)<5,sum(VALUE),'')

If you only have a condition on dimensionality you users will be able to get around this by changing dimension order. And obviously you need to change the condition if your dimensions are not 1-6 but actual dimension names.

NathanS2022
Contributor II
Contributor II
Author

Thank you very much! It worked exactly as I needed. Here's how I used the condition:

If(GetObjectDimension(4) = 'Name Of Index 4' AND Dimensionality()=5, ' ', Sum(VALUE))

This case works since the users don't change dimension orders because it would be pointless for them in this specific case and there's no problem in them seeing the value of 5 and 6. It's just for a cleaner visual.