Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
pkelly
Specialist
Specialist

% of Total

Hi ...

I am trying to achieve the following

%ProductFamilyKeyProvSales% of Tot
2UK50025.00%
NUK150075.00%
Total 2000100.00%
3UK60046.15%
NUK70053.85%
Total 1300100.00%
Total 3300

Sales = sum(sin_Sales)

How do I calculate the % Total based on the sub total for each %ProductFamilyKey

I have tried playing around with the aggr function with no success so far.

Any assistance greatly appreciated.

Regards

Paul

1 Solution

Accepted Solutions
Not applicable

If "Perc of Total" means "Perc of Province", you can write:

= sum(sin_Sales) / sum(Total <Province> sin_Sales)

Or "give me the sales for each Family/Province in percent on the total for the current Province".

Hope it helps!

View solution in original post

3 Replies
IAMDV
Luminary Alumni
Luminary Alumni

Paul - Please can you post the QV document with sample data?

Cheers - DV

Not applicable

If "Perc of Total" means "Perc of Province", you can write:

= sum(sin_Sales) / sum(Total <Province> sin_Sales)

Or "give me the sales for each Family/Province in percent on the total for the current Province".

Hope it helps!

pkelly
Specialist
Specialist
Author

Thanks Chiesa that did the trick...