PowerPivot: Add one product to another

eliwaite

New Member
Joined
Feb 24, 2015
Messages
30
We are getting rid of some old products, and directing the demand for the old product to a new product. I am trying to setup a table which shows the change in demand for the new product. Here are some very simple tables which lays out what I am working with.

I have a table called SKU_Mapping which shows which products are being direct:

Old Product IDNew Product ID
12
34

<tbody>
</tbody>

I have another table with some historical data called Sales:

Product IDQuantity
110
25
37
43

<tbody>
</tbody>

I also have another table which lists each SKU, called Master_SKU

Product ID
1
2
3
4

<tbody>
</tbody>

I have the following relationships: 'Master_SKU'[Product ID] to 'Sales'[Product ID] and 'Master_SKU'[Product ID] to 'SKU_Mapping'[Old Product ID]

At the end of the day I would like a table like this

Old Product IDNew Product IDOld QuantityNew Quantity
121015
3473

<tbody>
</tbody>

My problem is I cannot figure out how to write a formula to get the New Quantity. I am throwing mud at the wall but nothing is sticking. Any insights or advice would be greatly appreciated.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
How about you create a new column in your master sku table that has just the new mapping. If there is no change, then the new column is then same as the product id. If there is a change, they codes will be different. Then you can use either the new or old column in your reports.
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,394
Members
448,957
Latest member
Hat4Life

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