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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Applicable88
Impactful Individual
Impactful Individual

Calculate the working hours where a worker's log in and log out times span multiple shifts:

Hello, 

I have following shift times:

Shift From Until
Early 06:00 14:00
Late 14:00 22:00
Night 22:00 06:00

 

I want to calculate the hours someone works in his shift. But also when he might has another working model, which can span over

different shift, I want to know the respective hours calculated for those shift:

WorkDay WorkerID LogInTime LogOutTime EarlyLateNight
21.03.2023 A 21.03.2023 05:30:00 21.03.2023 12:00:00 6,000,000,50
21.03.2023 B 21.03.2023 12:00:00 21.03.2023 15:00:00 6,001,000,00
21.03.2023 C 21.03.2023 18:00:00 21.03.2023 23:00:00 0,004,001,00
21.03.2023 D 21.03.2023 06:00:00 21.03.2023 14:00:00 8,000,000,00

 

I basically need the red columns where I can summarized the hours which spans over two or more shift. WorkerID = D is for example someone who entirely stays with his shift. But not the others. They always work far into the other shifts and I want those working hours listed separately.

 

Thank you very much in advance.

Best. 

1 ACCEPTED SOLUTION
Idrissshatila
Super User
Super User

Hello @Applicable88 ,

 

Check if this video would help https://youtu.be/6JA6uy3ZRBA

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Idrissshatila
Super User
Super User

Hello @Applicable88 ,

 

Check if this video would help https://youtu.be/6JA6uy3ZRBA

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




@Idrissshatila thank you very much. I think I can work it out with that method. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.