PowerQuery Merge Effective Date

barjoman

Board Regular
Joined
Oct 29, 2014
Messages
99
I have a set of performance data by Region, and I would like to merge this data with the appropriate Manager Name. In Power Query, a simple Left Outer Join does the trick in the normal situation where a Manager is assigned one or more regions for the entire Data Set.

My problem lies in how to address Manager changes.

Regions A and B are allocated to Manager X from Jan 1st to Jun 13th
Region C is allocated to Manager Y from Jan 1st to Jun 13th
Regions A and C are allocated to Manager X from Jun 14th onwards
Region B is allocated to Manager Y from Jun 14th onwards

One solution is to have every single RegionDate combination with the appropriate manager, but that would be extremely difficult to maintain (hundreds of thousands of combinations) and would probably suffer from some Human Error.

Ideally, we would have every region, the manager name, and the effective date in a table (much easier to maintain and only hundreds of rows. We would then only have to update the table IF there are a any changes, which are generally few and far between.

Ideas?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
This is fantastic! It looks like it will work. I'll test it and let you know if I face any issues.

The data is eventually going to be loaded into PowerPivot, but I'll be filtering for each manager in Power Query before the load occurs.
 
Upvote 0

Forum statistics

Threads
1,215,065
Messages
6,122,944
Members
449,095
Latest member
nmaske

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