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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Lucy64
Advocate II
Advocate II

Overtime Calculation

I have seen other topics relating to overtime but the calculation I need appears more complex:

 

I have data with [Date], [Shift], [ItemNumber].  There can be several entries for a shift on any one day for each ItemNumber they work on.  Each shift should work 8hrs per day and any additional hours should be calculated as overtime.  The data is stored in a SQL Database and I am using DirectQuery to connect to the data.

 

I need to show a graph showing just the overtime for each shift with ability to drill down through date i.e. Year, Quarter, Month, Day.

 

Any ideas?

1 REPLY 1
Anonymous
Not applicable

@Lucy64

 

Do you have any time brackets, like anything over 5 PM should be cateogrised as overtime? If so, you can use that as a filter in your calculation. Otherwise, you can calculate a time difference of start & end time in a separate column. On the report, you can use one of the filters (visual/page/report) to only show data where difference is more than 8 hours. 


Thanks

Kaz

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.