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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
SWI-Inc
Regular Visitor

Calculate Average Time To between to columns that contain Time and Date, excluding weekends

Hello

 

i have two colums that contain a date and time. I added a calculated column to show the difference in days hours, minutes, and seconds.  My issues are (1)  i need to exlude any weekend or holiday hours, (2) i need to be able to summerize the colmun as i am attepmting to find the average time it takes for an order to pick and ship.  This is a link below to my file

 

https://drive.google.com/drive/folders/1P0_5c8OZQAp3dpwPDTgVF9NWNvl4k_iQ?usp=sharing

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@SWI-Inc , if you are looking for business hours, check if this blog can help

https://exceleratorbi.com.au/calculating-business-hours-using-dax/

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

This hasnt worked for me.  i used the final formula matt posted. Here is my file.  i need the time between the pick date and ship date expressed in hours

 

https://drive.google.com/drive/folders/1P0_5c8OZQAp3dpwPDTgVF9NWNvl4k_iQ?usp=sharing

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.