Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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 (diiference between dates in 5th and 4th rows) etc
Solved! Go to Solution.
Do it myself 🙂
CALCULATE(MIN([datetime]); FILTER('export ONLINE'; EARLIER([user_id]) = [user_id] && EARLIER([datetime]) < [datetime])) - 'export ONLINE'[datetime])
Do it myself 🙂
CALCULATE(MIN([datetime]); FILTER('export ONLINE'; EARLIER([user_id]) = [user_id] && EARLIER([datetime]) < [datetime])) - 'export ONLINE'[datetime])
Hi @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
User | Count |
---|---|
97 | |
87 | |
77 | |
67 | |
63 |
User | Count |
---|---|
110 | |
95 | |
95 | |
64 | |
59 |