Consolidation Index Key using powerquery

Sonova

New Member
Joined
Feb 21, 2017
Messages
24
I have a workbook which has data for different projects. Each project has categories and monthly data, using powerquery an index column was created in order to define the relationship between the monthly data and categories.

https://www.dropbox.com/s/l5b3oes2ovg092n/datamodel.PNG?dl=0

My Steps:

  1. Create a categorykey with index
  2. Categories merged with categorykey
  3. Monthly data merged with category key
  4. Powerpivot relationship beetween categories and monthly data

Most of the categories are generic however some projects have additional categories or less thus the index numbers will never be the same across all the projects for their respective categories.


My issue now is that I am trying to create a consolidation of the data for all the projects . My thought process was to create an appended Category table(powerquery) and remove any duplicate categories.

However I can not create a relationship of my appended categories with my individual project categories due to duplicate index numbers and If I create a relationship using a custom index (Index1.1) column to my individual project table categories, the index numbers will not match.
https://www.dropbox.com/s/5sfsu7p4l932zqd/Appendedcategorykeys.PNG?dl=0

Example below.

If I create a consolidated pivot table my revenue for an individual projects(custom index as key) it is shown under subcontracting (34).

KeyAppended IndexIndex.1(Custom Index)
8Revenue3458
5Subcontracting3434

<tbody>
</tbody>

https://www.dropbox.com/s/akjdcqi62k0w7yz/J56FinalModelV4.xlsx?dl=0
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,215,681
Messages
6,126,191
Members
449,298
Latest member
Jest

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