Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculating the percentage of columns values in totals

Hi there,

i have a data set like below on a pivot table

Managerdue day0-1516-3031-4545+Total
aa$27.557$12.039$4.978$7.845$52.419
bb$41.924$32.955$26.489$59.119$160.487
cc$0$0$0$33.552$33.552
dd$196.365$97.496$117.485$251.297$662.642
ee$73.342$6.604$2.215$13.000$95.161
ff$67.541$36.390$35.779$437.480$577.190


i'm trying to add a new expression which calculates the percentage of every column in totals as shown in the table below;

due day0-1516-3031-4545+Total
ManagerAmountPercentage (%)AmountPercentage (%)AmountPercentage (%)AmountPercentage (%)
aa$27.55752,57%$12.03922,97%$4.9789,50%$7.84514,97%$52.419
bb$41.92426,12%$32.95520,53%$26.48916,51%$59.11936,84%$160.487
cc$00,00%$00,00%$00,00%$33.552100,00%$33.552
dd$196.36529,63%$97.49614,71%$117.48517,73%$251.29737,92%$662.642
ee$73.34277,07%$6.6046,94%$2.2152,33%$13.00013,66%$95.161
ff$67.54111,70%$36.3906,30%$35.7796,20%$437.48075,79%$577.190


i need the formula for expression to get this result.

thank you for any idea..

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

You are right, I missed that.

Try this:

Sum (Amount) / Sum (Total Amount) * 100

That should work I think.

View solution in original post

4 Replies
Anonymous
Not applicable
Author

You can use the same expression (just copy and past is) and and mark it as "relative"

Qlikview does the math for you 🙂

Not applicable
Author

tahnk you,

if it was a straight table then you would be right but unfortunately it is a Pivot table so i cant do it so easy,

any idea for pivot table ??

Anonymous
Not applicable
Author

You are right, I missed that.

Try this:

Sum (Amount) / Sum (Total Amount) * 100

That should work I think.

Not applicable
Author

Thank you very much Dennis,

this one works properly.

best regards