Reference Unrelated Field (many-to-many) on a Different Table w/the Earliest Instance

stbrooks13

New Member
Joined
Dec 9, 2014
Messages
40
I have two tables that I cannot relate because there are multiple instances on each.

One table (called ActivityTable) is a list candidates tied to jobs.

The other table (called OCITable) is the same list of candidates, but it also includes the "Interview Date" that the candidate interviewed with us, sometimes more than once.

The "Candidate ref num" exists on both tables and is the field that *should* tie the two together.

What DAX formula do I use on the ActivityTable to show the earliest interview date found on the OCITable?

Thank you in advance for your help!
 
Last edited:

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi stbrooks13,

To make your life easier, you should create a common lookup table for Candidate ref num and relate both ActivityTable and OCITable to that.

Once you've done that, within the row context of the ActivityTable, you can access the OCITable using CALCULATE. CALCULATE results in context transition which creates a filter context corresponding to the current row of the extended ActivityTable (which includes the Candidate lookup table), which in turn filters OCITable.

The calculated column would simply be
Code:
= CALCULATE ( MIN ( OCITable[Interview Date] ) )

Dummy example here:
https://www.dropbox.com/s/kj6fl4i0oa012hg/Earliest interview date.xlsx?dl=0

Regards,
Owen :)
 
Upvote 0
No worries - so are the values returned correct or not?
If not, could you post a link to a sanitised model or an extract of the tables showing where results are not as expected?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,650
Messages
6,120,734
Members
448,987
Latest member
marion_davis

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