states making up top 80% of sales

sreachard

New Member
Joined
Aug 14, 2012
Messages
17
I have a request for a report listing the states making up the top 80% of sales, I'm stumped about how to go about this in powerpivot.

My thoughts are I would need a total sales measure, a running total measure and an 80% of total sales measure, states would need ordered by total sales desc, when the running total exceedes the 80% measure you've got your result set.

The logic sounds easy enough when broken down, but i'm stumped.


Thanks for any help
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Are you sure you need a running total? You need a clear definition of what is meant by 'top 80% of sales': this month, this year, ever, for a particular project/component etc etc Once you define exactly what you need to achieve and what data you have available the answer will probably be much clearer. It reminds me of an old Chinese (i think) saying: Seek not to know the answer, but to understand the question!
 
Upvote 0
Are you sure you need a running total? You need a clear definition of what is meant by 'top 80% of sales': this month, this year, ever, for a particular project/component etc etc Once you define exactly what you need to achieve and what data you have available the answer will probably be much clearer. It reminds me of an old Chinese (i think) saying: Seek not to know the answer, but to understand the question!


No, i'm not sure i need a running total, was just thinking out loud about how to get the result. some more detail on what is needed, active insurance policies total premium for a specific month end date, states that make up 80% of total premium.

Thanks
 
Upvote 0
That's standard pivot table functionality. Simply filter the state field for the top 80% by values.
 
Upvote 0
well, i feel kind of dumb and a bit smarter at the same time! Thanks that works. I can add a new sheet with a pivot and connect the slicers and that is working, now my next issue is how do i get the summary data on the first sheet.

there are slicers to select the year and month end date.

business states accounts premium states with 80%of premium
bus1 22 500 3,268,515 16
bus2 18 300 2,459,371 12

the states with the 80% column needs to come from the second sheet I tried converting the second sheet to cube formuals, but i don't think that will work because the number of rows would need to be dynamic.

Thanks
 
Upvote 0
well, i feel kind of dumb and a bit smarter at the same time! Thanks that works. I can add a new sheet with a pivot and connect the slicers and that is working, now my next issue is how do i get the summary data on the first sheet.

there are slicers to select the year and month end date.
business states accounts premium states with 80%of premium
bus1 22 500 3,268,515 16
bus2 18 300 2,459,371 12

the states with the 80% column needs to come from the second sheet I tried converting the second sheet to cube formuals, but i don't think that will work because the number of rows would need to be dynamic.

Thanks
 
Upvote 0

Forum statistics

Threads
1,215,523
Messages
6,125,318
Members
449,218
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top