How to create an OTHERS category

PerryStrine

New Member
Joined
Aug 6, 2013
Messages
1
Hey all,
I have some sales data in a database.
I import the data into PP and sum the sales by product id. The result looks like this:
ProdID TotalQtySold
P2 120
P5 86
P1 70
P9 32
P3 8
P4 6
P6 3
P7 3
P8 1

I would like to add any totals that are less than 10 to a category called Others.
Then my pivot would like this this
ProdID TotalQtySold
P2 120
P5 86
P1 70
P9 32
Others 21

Is there any way to achieve this or do I need to modify the source data is some way?
Perry
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Power Pivot doesn't let you put anything on rows/columns/filters/slicers unless that value explicitly exists in the PP tables.

In other words, "Other" would need to exist in your Products table, and be explicitly handled in your measure:

IF(HASONEVALUE(Products[ProdID]), IF(FIRSTNONBLANK(Products[ProdID])="Other", sum products LESS than 10, sum products GREATER than 10), sum products GREATER than 10)

and the greater than 10 part looks like:
CALCULATE(SUM(Sales[Amt]), FILTER(Products, SUM(Sales[Amt]) >= 10))

not exactly elegant.
 
Upvote 0

Forum statistics

Threads
1,223,956
Messages
6,175,607
Members
452,660
Latest member
Zatman

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