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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
GrakeBliffin
New Member

Overtime, Normal Time Calculations

Hi all,

full disclosure i'm pretty new to this.

What i'm trying to do is two steps. One is to calculate the total hours worked per job which is calculated from three columns, travel start time, travel arrival time and completion time.

Then I need to split these hours into normal and overtime.

Normal Time is 7:00am to 3:30pm and OT any other time

 

Time calculations.PNG

Any help appreciated, or advice on youtube videos or resources that could get me going in the right direction

5 REPLIES 5
ryan_mayu
Super User
Super User

@GrakeBliffin 

why the start time and arrvial time are the same?

could you pls do the same calculation in excel and provide the screenshot?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Does this help?

I have used IF functions to determine whether the hours of work fall between Normal Time hours (7am-3:30pm) or Overtime Hours (Any other time including weekends).

Below is just one example I have made for demonstration purposes

 

GrakeBliffin_0-1638830501801.png

 

@GrakeBliffin  Any updates? 

Hi, @GrakeBliffin 

 

Can you explain the calculate logic because you have three date columns? 

vjaneygmsft_0-1639126557846.png

In addition, The measure will change according to the context, we don’t know what kind of result you want.

vjaneygmsft_1-1639126655085.png

I believe your problem is not difficult to solve.

Can you share some sample data(table format or a file instead of screenshot) and your desired result(in powerbi)? So we can help you soon.

 

Best Regards,
Community Support Team _ Janey

amitchandak
Super User
Super User

@GrakeBliffin , Not very clear, But you need these column, some of them can be var in a new column

 

Arrival Time = datediff([Travel Start Time], [Arrival Time], Second)//you can use minute or hour

 

Actual Time = datediff([Travel Start Time], [CompletionTime], Second)//you can use minute or hour

 

compare these to

 

if([Actual Time] <= [Arrival Time], "Ontime", "Over Time")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.