Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
gamaplast
Contributor III
Contributor III

Help with set analysis

Hello guys,

pls, I need a little support with set_analysis: in the attached qv sheet, I'd like to add a column with the percentage of every single cell referred to the total (for every month) of the "A" account (I know it seems a non-sense, but it's the customer request...).

You'd find alse the Excel version of my request where you'd find the percentage column.

Thank you so much.

R.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

As far as I understood, you are asking for:

=Sum(Amount) / Sum({<Account = {A}>} TOTAL <RegMonth> Amount)

RegYear 2015Total
RegMonth gen 2015feb 2015mar 2015 
Account SubAccount Sum(Amount)BenchmarkSum(Amount)BenchmarkSum(Amount)BenchmarkSum(Amount) Benchmark
A011000047,62%800047,06%600046,15%24000 47,06%
021100052,38%900052,94%700053,85%27000 52,94%
Total 21000 100,00% 17000 100,00% 13000 100,00% 51000 100,00%
B01900042,86%700041,18%500038,46%21000 41,18%
021000047,62%800047,06%600046,15%24000 47,06%
Total 19000 90,48% 15000 88,24% 11000 84,62% 45000 88,24%

View solution in original post

6 Replies
sunny_talwar

Try this:

Sum(Amount)/Sum(TOTAL <Account, RegMonth> Amount)


Capture.PNG

gamaplast
Contributor III
Contributor III
Author

Sorry, but it's not what I was looking for...i must calculate all the percentages on the same account.

Pls have a look to my excel example to understand better my aim.

Thank you for the answer.

R.

swuehl
MVP
MVP

As far as I understood, you are asking for:

=Sum(Amount) / Sum({<Account = {A}>} TOTAL <RegMonth> Amount)

RegYear 2015Total
RegMonth gen 2015feb 2015mar 2015 
Account SubAccount Sum(Amount)BenchmarkSum(Amount)BenchmarkSum(Amount)BenchmarkSum(Amount) Benchmark
A011000047,62%800047,06%600046,15%24000 47,06%
021100052,38%900052,94%700053,85%27000 52,94%
Total 21000 100,00% 17000 100,00% 13000 100,00% 51000 100,00%
B01900042,86%700041,18%500038,46%21000 41,18%
021000047,62%800047,06%600046,15%24000 47,06%
Total 19000 90,48% 15000 88,24% 11000 84,62% 45000 88,24%
sunny_talwar

I make mistakes and then I complain...

sunny_talwar

I think Stefan has already provided what you might have been looking for. Have you looked at his response yet?

gamaplast
Contributor III
Contributor III
Author

Very fine 😉

Thank you so much. 🙂