Finding Latest Supervisor

Mahesh7

New Member
Joined
Feb 14, 2015
Messages
1
Hi All,

I have a quick question regarding PowerPivot calculate column. I have below tables

1) Transactions
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]EMP ID[/TD]
[TD]EMP Name[/TD]
[TD]Sale Amount[/TD]
[TD]Sale Date[/TD]
[TD]Supervisor Name[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]xyz[/TD]
[TD]$1000[/TD]
[TD]12/12/18[/TD]
[TD]Sup 1[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]xyz[/TD]
[TD]$100[/TD]
[TD]12/15/18[/TD]
[TD]Sup2[/TD]
[/TR]
</tbody>[/TABLE]


2) HeadCount Table

[TABLE="width: 500"]
<tbody>[TR]
[TD]EMP ID[/TD]
[TD]EMP NAme[/TD]
[TD]SUp Name[/TD]
[TD]SUP Change Date[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]xyz[/TD]
[TD]12/11/18[/TD]
[TD]SUp 1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]xyz[/TD]
[TD]12/14/18[/TD]
[TD]Sup 2[/TD]
[/TR]
</tbody>[/TABLE]


I want update the supervisor Name column in Transacitons table basis HeadCount Table. That is Sup name should reflect as per supervisor change date in HeadCount Table.

eg. For all the transactions from 12/11/18 to 12/13/18 sup name should be SUp 1 and Sup2 after that.

I am using powerpivot. I have done this in normal excel table using lookup formulas but its not working in PoserPivot.

Regards,
Mahesh
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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