Select Max Timestamp

I’m building an app for time tracking. I’m trying to calculate a “steptime” column so that eventually I can create running totals of how long an employee was “clocked in” at work.

Essentially I need a calculation that takes the TIMENOW() and subtracts the employee’s last “Time In” timestamp so that I can tell how many minutes someone was at work.

2X_d_ddc291cfc2757f06bc05421215cc28c2ca67365f.png

Solved Solved
0 1 569
1 ACCEPTED SOLUTION

Something like IFS([Clock Type]=“Out”,[Timestamp] - MAX(SELECT(Timesheet[TimeStamp],AND([Date]=[_THISROW].[Date],[Clock Type]=“In”,[Employee]=[_THISROW].[Employee]))))

View solution in original post

1 REPLY 1

Something like IFS([Clock Type]=“Out”,[Timestamp] - MAX(SELECT(Timesheet[TimeStamp],AND([Date]=[_THISROW].[Date],[Clock Type]=“In”,[Employee]=[_THISROW].[Employee]))))

Top Labels in this Space