Merge two different organization keys, from different data warehouse

Lmggud

New Member
Joined
Apr 2, 2022
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hallo.

Assignment:
I have to build a report, in Excel, that shows the sum of measures, when the user drills up and down our organization hierarchy.


Challenge:
Data comes from two different data warehouse, that uses different organization keys, for the same department.
Department names is the same in the two Data warehouses.


Tools:
I use Power Query and Power Pivot.
I am trying to building a star schema.

The Fact table contain, the Organization key and the measures.
Dimension tables contain, Organization key and the name of our different departments.

I have attached a Image that shows a illustration of the Organization Keys, i hope it helps.

Problem: I can’t figure out how I can build a dimension, that will allow me to merge the two organization hierarchy’s/ Organization keys.

I hope someone can explain to me, how I can solve this problem.
 

Attachments

  • billede_2022-04-02_150906.png
    billede_2022-04-02_150906.png
    63.5 KB · Views: 19

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
You need a mapping table to map the keys. If it were me, I would Load the mapping keys into the dim table, substitute the keys from one dw in the fact table, and join on the key you selected to use.
 
Upvote 0
Hello.

Thank you for your reply.

Will it be possible to make the mapping table in Power Query?

One of my challenges is, that the organization keys change daily, and i will have to remake the mapping table every time I update the report.
 
Upvote 0
When you say change, do you mean new keys are added, or do you mean today the key mapping is ABC => 123 and tomorrow ABC =>456 ? Hopefully the former. I would not do it in Power Query. I would do it in Excel and load into PQ from there. You can then just maintain the Excel workbook prior to refresh.
 
Upvote 0
Hello.

Thank you for your reply ?

The keys at change every day, for security reasons.

Today ABC is 123
Tomorrow ABC is 456.

I have made an Excel file and uploadet it to power query. It works, but it is another manual step.
 
Upvote 0
You can't do much about it if this change happens. You need to harmonise the keys across orgs to make the reporting work. If there is another way to do that, then you should investigate. eg, if the descriptions are unique and don't change, then you could maybe use those.
 
Upvote 0

Forum statistics

Threads
1,223,385
Messages
6,171,780
Members
452,424
Latest member
Sheila003

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