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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rogerthat
Helper I
Helper I

Working Hours between two datetimes M-F (Including Saturdays)

I'm trying to figure out to how to implement working hours from two different datetimes.

  • M-F (8A-5P)
  • SATURDAY (8A-4P)

Must disregard Holidays

I've tried using this method from Bill Szysz but I'm having a hard time incorporating the Saturday hours.

 

 

dd.png

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

@rogerthat Can you use a DAX solution? Net Work Duration (Working Hours) - Microsoft Power BI Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler Would the the solution also account for holidays? So if its a holiday, SLA hours should not be counted?

@rogerthat You could have a holidy table and in the __NetWorkDays VAR formula you could do an EXCEPT around the CALENDAR statement to exclude the holidays. Also, in that same statement you would want <7 instead of <6 in order to include Saturdays.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler I'm not sure the calculation is correct for me

 

 

For example, for 

startendexpectedresult
9/17/2021 19:589/17/2021 21:500112

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.