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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum of Rows on Count expression in Pivot Table

I need a way to get the sum of rows of my expression on the bottom of the pivot chart. At it's most basic it is just a count distinct expression with a little set analyisis.

I have looked on these forums and found a lot of comments about using aggr(function , dim1, dim2 ), but when I use this, the total is blank,

Any help would be appreciated !

Thanks,

Kevin

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Yes, using advanced aggregation might be the way to go, look also in the Help for 'sum-of-rows in a pivot table using advanced aggregation'. You may just need an outer aggregation function:

=sum( aggr( function, dim1, dim2))

e.g.

=sum( aggr( count(Distinct Customer), Customer, Country))

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Yes, using advanced aggregation might be the way to go, look also in the Help for 'sum-of-rows in a pivot table using advanced aggregation'. You may just need an outer aggregation function:

=sum( aggr( function, dim1, dim2))

e.g.

=sum( aggr( count(Distinct Customer), Customer, Country))

Not applicable
Author

The additional aggregational sum feature worked. Thanks swuehl