Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

time difference between timestamps except first and last login

I have the below data table that containts users logs. After the substraction between last log out and First log in I have found the total working hours duration. I have tried to add a calculated column that brings the latest event and then make a substraction but my 16 GB Ram computer can't perform the calculation since I have almost 53.000 records for the last month.

My question is if there is any way that I can measure the total break time having only a column with the time event, the event itself (In, Out).

 

 

Untitled1.jpg

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

What do you mean "measure the total break time having only a column with the time event, the event itself (In, Out)"? What is the current measure formula you used?

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

there is the event timestamp column that records each event (direction column). For each day a user by hitting his/her card a new event is being recorded. I want to measure the total time he/she spent on break (difference out - in and ignore check) per day during his/her working hours. The right picutre shows the total working hours per day and it measures Last out - First In

(

# Working Hours Seconds = IF(
HASONEVALUE(Dates[Date]),
(IF(
HASONEVALUE(Data[User]),
[Last hit]-[First hit],
SUMX(VALUES(Data[User]),[Last hit]-[First hit]))),
SUMX(VALUES(Dates[Date]),(IF(
HASONEVALUE(Data[User]),
[Last hit]-[First hit],
SUMX(VALUES(Data[User]),[Last hit]-[First hit])))))*86400

)

 

* Last hit = MAX(Data[Event Time stamp]) 

First hit = MIN(Data[Event Time stamp])

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.