Skip to main content
Announcements
Qlik Connect 2025! Where innovative solutions turn your data visions into reality: REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
clovati
Partner - Creator

PIVOT - One row in details that has not to be showed

Hi all and thanks in advance.

In qlikview, in  my pivot there are 2 dimensons and one is the 'master', the other is 'details'.

I want to hide/not to show the details when the number of details is one (and total is the same as details).

This is an example.

Capture.PNGthanks in advance and have a good day!

Cristina

1 Solution

Accepted Solutions
sunny_talwar

I like the idea of doing a distinct count of details here instead of count of master

If(Dimensionality() = 1 or Count(DISTINCT TOTAL <master> details) > 1, Sum(amount))

View solution in original post

4 Replies
vinieme12
Champion III

Add a calculated dimension for "master" as below and check , Suppress when value is null

=AGGR(IF(COUNT(dIStinct total  <master> detail) >1,master),master)

242239.PNG

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
sunny_talwar

Another option (using vinieme12‌'s sample)

Capture.PNG

If(Dimensionality() = 1 or Count(TOTAL <master> master) > 1, Sum(amount))

vinieme12
Champion III

Another Variant

Dimensions:

Diminesion1:   master

Diminesion2:   =AGGR(IF(COUNT(dIStinct total  <master> detail) >1,detail),master,detail)

Expression:

if(SUM( TOTAL<master> AGGR(count(DISTINCT TOTAL <master> detail),master))=1 AND Dimensionality()=2,NULL(),SUM(amount))

242239_v2.PNG

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
sunny_talwar

I like the idea of doing a distinct count of details here instead of count of master

If(Dimensionality() = 1 or Count(DISTINCT TOTAL <master> details) > 1, Sum(amount))