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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
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,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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