Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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

1 Solution

Accepted Solutions
tresesco
MVP
MVP

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)))


tresesco
MVP
MVP

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