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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,620
Latest member
dsubash

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