how to best summarize this in a pivot table?

bigdan

Well-known Member
Joined
Oct 5, 2009
Messages
846
Office Version
  1. 2013
Platform
  1. Windows
[TABLE="width: 500"]
<tbody>[TR]
[TD]Province[/TD]
[TD]Postal Code[/TD]
[TD]Shipping Net[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Ontario[/TD]
[TD]M4M 1L4[/TD]
[TD]$3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Ontario[/TD]
[TD]M4M 1X5[/TD]
[TD]-1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Ontario[/TD]
[TD]M4M 3Z7[/TD]
[TD]-50[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]BC[/TD]
[TD]Y3L 1Z4[/TD]
[TD]-30[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]BC[/TD]
[TD]Y3L 1X5[/TD]
[TD]-300[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]BC[/TD]
[TD]Y3L 1M9[/TD]
[TD]-700[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


I have about 200K rows of transactions, to a whole set of postal codes. I'm trying to figure out which postal codes in which provinces are causing the biggest issues.

If I create a pivot table and put Province then Postal Code in the rows section, I get 1600 lines. Which is hard to get meaningful data from. I've put the Shipping Net (ie whether Shipping is profitable or making losses) in Values, and I'd like to filter the values. Either the bottom 10% or anything with losses of $2K or more. Is there a way to do this?

To clarify, I don't want just the top 10% of losses, since those could all belong to one province. I want the top 10% in each province.

I'd be grateful for any advice!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Upvote 0
Thank you so much! So kind of you to go to all that trouble :)

So it seems like the key point was to do the pivot in Tabular Form?



Hi, top or bottom 10 or 2 in the example below (not percent) can be attained using filter on Postal Code for top or bottom 10 this will yield you below results.

https://drive.google.com/open?id=1ZtQu9gsfex-xSAxtVqDjiWtfJl2N5bPK

https://drive.google.com/open?id=1maChFBRmYHds9zGkwKTVXCxn7mjcoarq

https://drive.google.com/open?id=1LmzfHJD_brtHLIzJnYNQdgKDX9t3bu9L

Hope this helps
 
Upvote 0
It should work in compact form also, key was putting filter on postal code column.

Glad could help and thanks for the feedback :)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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