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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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