Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
riceball
Contributor
Contributor

Pivot Table Dimension (Sum)

Hi,

I'm trying to build a pivot table with a single dimension (Product) on the left side and two dimensions (Type and Category) along the top.


However, the result of totalling up the sales through "partial sum" features was like this:

Partial Sum Result.png

I would like my output to look like this instead:

My Output.png

Currently, I'm maintaining 2 different tables which is quite troublesome. I would like to consolidate my results into a single table like the one above.

Please help. Thanks!!

12 Replies
rohit214
Creator III
Creator III

Hi ,

I think insted of selecting show partial sum option you should use an expression for total

Aggr(Sum(sales),Product,Category)

Thanks

Rohit

riceball
Contributor
Contributor
Author

Hi,

I've tried the advance aggr method - Aggr(Sum(Sales),Product,Category) , but it still yield the same result

Partial Sum Result.png

Thanks.

rohit214
Creator III
Creator III

then use

Sum(total<Product>Category) in total expression

riceball
Contributor
Contributor
Author

Hi,

It's not working too. I think changing the expression script doesn't help unless I assigned one expression for each category/type. But that is way to much work as I have over 30 types at my end.

sunilkumarqv
Specialist II
Specialist II

check Category dimension partial sum in presentation

riceball
Contributor
Contributor
Author

Partial sum works, but the output is not what I wanted. It does not sum up each category respectively

Partial Sum Result 2.png

sunilkumarqv
Specialist II
Specialist II

Sum(Pivot).PNG

riceball
Contributor
Contributor
Author

Hi,

Thanks for your help! But is it possible to aggr the type for the 2nd expression. Instead of listing "large","medium","small", I would like to have just the "Total" and then breakdown by Type. This enables me to see the total sales for each color

My Output.png

mohammadkhatimi
Partner - Specialist
Partner - Specialist

Hie...

Check this ...