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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

show totals but suppress value in pivot table

I have scenario where

Product    type       Sales       

  A               P1       100

  B               P2        200

  A               P2        300

in the above table A is associated with P1 and P2, where I want to suppress P2 row, but want its to be included in totals like the table below

total       400  this is for A

P1          100

P2          300 (which is suppressed/hide)

total     200         for B

P2       200  it should be hide/suppressed   

john

1 Solution

Accepted Solutions
sunny_talwar

Check this out

(Made further modifications to tres's attached qvw )

View solution in original post

14 Replies
sunny_talwar

Something like this:

Capture.PNG

Expression:

=If(SecondaryDimensionality() = 0, Sum(Sales), Sum({<type = {'P1'}>}Sales))

Anonymous
Not applicable
Author

Hi Sunny if user selects Product B, then it has to display total but not B.

sunny_talwar

Like this?

Capture.PNG

or completely remove Product B?

Anonymous
Not applicable
Author

completely remove product B, but display total as 200

Anonymous
Not applicable
Author

Sunny, Is there a way where we can hide/squeeze  rows by using macro

tresesco
MVP
MVP

Like this?

Anonymous
Not applicable
Author

Tresesco, its almost close, but if I select Product A, this has to show Product A with P1 as type and total, here my aim is to hide only P2 and its associated values.

tresesco
MVP
MVP

When nothing is selected?

Anonymous
Not applicable
Author

It has to display Products where type is P1 and totals( this should have the P2 values in it)