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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Amit_B
Creator II
Creator II

Hide measure values for a specific dimension

Hi,

I have a pivot table where users can dynamically choose which dimensions to display - ItemCategory, ItemGroup, ItemID.
One of the measures in the pivot is ItemTarget, which is defined at the Category and Group level.

The problem is that when the pivot is expanded to the item level, the target get repeated for every item. The values in each row are not included in the total value, but each row get the target value for its category & group.

How can I hide the targets at the item level, so that it only appears at the category ang group levels, even when users choose to display the item dimension?

Labels (4)
4 Replies
pablolabbe
Partner Ambassador
Partner Ambassador

can you share an image of the pivot table as an example to understand your issue?

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button! | Follow me on Linkedin
marcus_sommer

You may query the dimensionality() to branch between the category/group and id-layer.

Another approach could be to distribute the category/group-values to the id-level, like:

group-value / count of id as atomic-target

More simple - remove the id-level from the chart and use separate charts with an appropriate granularity.

Nagaraju_KCS
Specialist III
Specialist III

Try this

The solution is to use the dimensionality() function within a conditional expression in your ItemTarget measure. 

Assume your dimensions are in this hierarchy

ItemCategory (Dimensionality = 3)

ItemGroup (Dimensionality = 2)

ItemID (Dimensionality = 1)

If you have a row showing Category A, Group B, and Item 101, the dimensionality for that cell is 1. If you are looking at the Group B Total, the dimensionality is 2.

=IF(Dimensionality() <= 2, Sum(ItemTarget), Null())

 

Chanty4u
MVP
MVP

Try this 

IF( GetSelectedCount(ItemID) = 0, ItemTarget )

Or

May be 

IF(Dimensionality() < 3, ItemTarget)