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

Aggregating and Calculating %

Hello,

I am new user of Qlikview and am trying to calculate the % for each product based on the following data set.

TypeAccountProductUnits
AXXABC10
AXXDEF50
AXXGHI72
AYYABC62
AYYDEF17
AYYGHI46

I need the results to be as follows

TypeAccountProduct%
AXXABC7.58%
AXXDEF37.88%
AXXGHI54.55%
AYYABC49.6%
AYYDEF13.6%
AYYGHI36.8%

Please advise on most optimal way of doing this.

Thanks

Labels (1)
2 Replies
marcus_sommer
MVP
MVP

Try something like this in a pivot-expression: sum(value) / sum(total <Type, Account> value)

- Marcus

maxgro
MVP
MVP

sum(Units) / sum(TOTAL <Account> Units)

1.jpg