Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to calculate TOTAL sum

hy everybody.

Below is the excel file and I need to calculate in qlikview the column "Total Qty" and "Qty %".

Total Qty is the total sum of product grouped by Category.

Qty % is the sum of product /  total sum of product grouped by Category

In qlikview I need to create a table with only dimension Product and expression "Total Qty" and "Qty %"

In attached my qvw file where I try to calculate "Total Qty" and "Qty %" but it dosnt work.

The expression that I create is:

SUM(Qty)/aggr(SUM( Qty),Category)

Can you help me?

Thanks

   

CategoryProductQtyTotal QtyQty %
CATEGORY 1PRODUCT 113224505.387755
CATEGORY 1PRODUCT 2380245015.5102
CATEGORY 1PRODUCT 31891245077.18367
CATEGORY 1PRODUCT 44724501.918367
CATEGORY2PRODUCT 55011643.10345
CATEGORY2PRODUCT 66611656.89655
0 Replies