Forum Discussion
Danielnir
3 years agoHelper II
Date Difference Between Interconnected Tables
Hi, I need to calculate the difference between dates from two different tables. The tricky part is that both date columns (marked with red lines) are kept in tables connected as in the picture be...
Greg_Deckler
3 years agoCommunity Champion
Danielnir Maybe:
Measure =
VAR __Date1 = MAX('SOPOrderReturn'[RequestedDeliverDate])
VAR __Date2 = MAX('SOPInvoiceCredit'[DocumentDate]
RETURN
( __Date1 - __Date2 ) * 1.Danielnir
3 years agoHelper II
Should I mention that I have something around 23k dates to compare? That's just comparing the highest date from one to the highest date from the second. My bad, I wasn't precise enough. Also tried changing MAX to SELECTEDVALUE but it resulted in a blank column...