Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
So to illustrate:
Is there a way to get with DAX column P (Log Time End).
I saw solution with making two index tables one start from 0 and one from 1.
Then merge and that way get the 2 timestamps on the same line.
Made me think.....should be simpler way...
So is there some dax code to get in the context of Day and User the log time of the next row as the log time end of the current row?
Solved! Go to Solution.
Step 0: I use this simple DATA table below. (I add a 'Index' column in Power Query Editor.)
Step 1: I add a column below.
Thanks @mickey64 , so you still would need 1 index table (makes things indeed easier).
You used -1 to get the start time. I used +1 to get the end time.
But there was still one thing to overcome :
You see here when a new user start the end time is not correct of course.
The line of 15:32:37 for user ALHAJJX is the last line of that day for the user so should be blank.
Therefore I made the logic like:
So only when current user (c_user) is equal to next user (n_user) lookup the end time.
Works nicely:
So thanks for putting me in the right direction 😄
Thanks @mickey64 , so you still would need 1 index table (makes things indeed easier).
You used -1 to get the start time. I used +1 to get the end time.
But there was still one thing to overcome :
You see here when a new user start the end time is not correct of course.
The line of 15:32:37 for user ALHAJJX is the last line of that day for the user so should be blank.
Therefore I made the logic like:
So only when current user (c_user) is equal to next user (n_user) lookup the end time.
Works nicely:
So thanks for putting me in the right direction 😄
Step 0: I use this simple DATA table below. (I add a 'Index' column in Power Query Editor.)
Step 1: I add a column below.