Linked Table info used to calculate a column

miguel.escobar

Active Member
Joined
Dec 7, 2012
Messages
294
Hi!

I have a fact sales table with sales amount, date and salesman (just to name a few columns) coming from the datasource1 and I also have a linked table that has information regarding the current supervisor for the salesman with the following columns:
Salesman_Id
Supervisor_Name
Start_Date
End_Date

so basically I'd like to add a new column on the fact table that will give me the "Supervisor_Name" that should go with that salesman record for that specific date. Should I try the many-to-many approach? any suggestions?

Thanks in advance for reading this!
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Any help with this would be much appreciated!
it's a pretty hardcore situation to deal with, specially because of the timeframe thing.
 
Upvote 0
Miguel,

Take a look at this old post of mine: Alberto Ferrari : Banding with PowerPivot

The last version of the formula is the one that will help you on this: simply use CALCULATE (VALUES (...), FILTER (...XX..)) where in XX you put a suitable filter that retrieves the supervisor at the moment of the sale.
That should do the trick.

Alberto
 
Upvote 0

Forum statistics

Threads
1,223,935
Messages
6,175,495
Members
452,649
Latest member
mr_bhavesh

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