Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
varunreddy
Creator III
Creator III

Show total by dimension

Hi All,

I have a pivot table and I am trying to display the distinct count at the end of the dimension.

Current Report:

In the above screen Shot, I am trying to calculate distinct Number by Type and Name either by using the straight or pivot table as shown below in the "Expected Output".

Expected Output:

Attaching the source file and the QVD. Can anyone please help me with this?

1 Solution

Accepted Solutions
vishsaggi
Champion III
Champion III

try this in your expr and in presentation tab enable Show partial sums check box.

= IF(Dimensionality() = 2, Count(DISTINCT Number), Severity)

Capture.PNG

View solution in original post

2 Replies
vishsaggi
Champion III
Champion III

try this in your expr and in presentation tab enable Show partial sums check box.

= IF(Dimensionality() = 2, Count(DISTINCT Number), Severity)

Capture.PNG

varunreddy
Creator III
Creator III
Author

Hi Nagaraju,

Thanks for your quick response

Cheers,

Varun