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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Partial Sums in Pivot Table

Hi

I am using the following Pivot table in my dashboard,

Capture.PNG

The user wants to see Total only if there is more than one Purchase Order coming under a customer.

In the above example I want to show Total only for the Customer 'Smith' and not 'Greyson'.

Is there a way to do so?

Thanks

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Try like:

If(Dimensionality()=1 and Count([Purchase Order])>1,Sum(Sales), if(Dimensionality()>1, Sum(Sales)))

Untitled.png

View solution in original post

3 Replies
tamilarasu
Champion
Champion

Hi Koushik,

Try,

If(Dimensionality()=1 and Customer='Smith', Sum(Sales),

If(Dimensionality()<>1, Sum(Sales)))


Edit:


Sorry. I didn't read your question fully, Check the below expression


If(Dimensionality()=1 and Count(Order_Type)>1, Sum(Sales),

If(Dimensionality()<>1, Sum(Sales)))


tresB
Champion III
Champion III

Try like:

If(Dimensionality()=1 and Count([Purchase Order])>1,Sum(Sales), if(Dimensionality()>1, Sum(Sales)))

Untitled.png

jonathandienst
Partner - Champion III
Partner - Champion III

Use this calculated dimension:

Aggr(If(Count([Purchase Order]) > 1, Customer), Customer)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein