Forum Discussion
athomp15
Helper I
7 years agoDAX Time compare (same column next row)
Hi All, I've solved this issue in Power Query, but would prefer a DAX solution. I've tried a EARLIER function, but can't quite get the results I need. Anyhow I have a table that looks like the follow...
Mariusz
Community Champion
7 years agoHi athomp15
Is the below Measure any help?
Measure =
VAR mdt = MAX(YourTable[date/time accessed])
RETURN
DATEDIFF(
mdt,
CALCULATE(
MIN(YourTable[date/time accessed]),
ALLEXCEPT(YourTable, YourTable[user]),
YourTable[date/time accessed] > mdt
),
SECOND
)
Hope this helps