Forum Discussion
Dates Between Dates Diff Tables
Hi,
Is there a way to compare dates between two tables, and say
if "TRANS_DT" is less than "Effective Date" in one row, but greater than "Effective Date" in the previous row, use "Grade" for that "RANS_DT"
So for the screenshots below, since the "TRANS_DT" for the first row is 12/29/2019, and the "Effective Date" in row 3 of the second screenshot is 12/19/2019, row 4 is 6/1/2020, the row output for the formula would be "3"...
Please let me know if this question does not make sense...
Thank you!
Sarah
Anonymous , Check the attached file after signature
7 Replies
- amitchandakSuper User
Anonymous , not very clear. But refer my blog on the same topic
- AnonymousNot applicable
Hm, I am not trying to find the date difference, but to see whether TRANS_DT is between two dates in a column in a different table.
If so, I am trying to put the GRADE from the row of the Effective Date that is before the TRANS_DT
- AnonymousNot applicable
Basically, can you do an index match formula in Power BI i think is my question...
=INDEX('Job Title'!$H$2:$H$6,MATCH(1,IF('Job Title'!$C$2:$C$6<=Labor!M4,1)))