Forum Discussion
mccollough
Helper I
4 years agoNeed Help Joining Between Two DateTimes & a Foriegn Key
Hi Everyone! I have one table that looks like this Shift _Table StartDateTime EndDateTime Shift EmployeeID 1/1/2022 8:00 1/1/2022 18:00 Day ...
HoangHugo
Solution Specialist
4 years agoHi
try this calculate column
Shift = MAXX (CALCULATETABLE(Transaction_table,EARLIER(TransactionDate)>StartDatetime,EARLIER(TransactionDate)<EndDatetime),Shift)
mccollough
Helper I
4 years agoHi HoangHugo ,
Thank you so much for taking the time to respond! I'm trying to implement the solution you described, but PowerBI says it can't find the TransactionDate column even when I use SELECTEDVALUE(). Do you have any other relationships between the columns besides one between EmployeeIDs?
Thanks again for your help!