Forum Discussion
wicker
8 years agoFrequent Visitor
Difference beetween date and future date on the same user_id
Hello! I need to calculate time intervals beetween rows with the same user_id. For example: for 1st row value is 23:42 (diiference between dates in 4th and 1st rows) for 4th row value is 5:49 (di...
- 8 years ago
Do it myself :)
CALCULATE(MIN([datetime]); FILTER('export ONLINE'; EARLIER([user_id]) = [user_id] && EARLIER([datetime]) < [datetime])) - 'export ONLINE'[datetime])
wicker
8 years agoFrequent Visitor
Do it myself :)
CALCULATE(MIN([datetime]); FILTER('export ONLINE'; EARLIER([user_id]) = [user_id] && EARLIER([datetime]) < [datetime])) - 'export ONLINE'[datetime])
v-huizhn-msft
Microsoft Employee
8 years agoHi wicker,
Congratulations, you resolved your issue by yourself, please mark your reply as answer, so more people will benefit from here. Thanks for understanding.
Best Regards,
Angelia