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

Sum in a pivot table

Hi, in a pivot table I have one field with values 1, 2 and 3.

I want to divide one amount field by SUM(amount) when field value = 1, for each value (1,2,3).

DescriptionTotals% Sales
Sales1000100%
Cost50050%
Other Cost20020%

Thanks in advance

Sebastian

20 Replies
sunny_talwar

Pick Dim method is sort of a hack that you need to use because QlikView doesn't have a direct way of dealing with this kind of problem. The goal is to have multiple dimensions with just a single expression. In your case, this will be the values for Dim

Capture.PNG

and Year will have a condition for the last column.

Does that make sense?