cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
SWI-Inc
New Member

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/

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors