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
HansZ
Regular Visitor

Delivery time between two dates in hours excluding non-working days except express delivery!!.

Hi fine Forum people,

How to calculate (total) delivery time between two dates/times, excluding weekends and holidays except if (express) delivered on Saturday.........in hours (elapsed time). 

Excel Networkdays formula only gives full complete days and doesn't format in hours.

"Duration" Power Query doesn't exclude, and Networkdays M-Codes also result in full days.

Below PQ screenshot of the challenge to slaughter your brain cells :).
Thanks in advance.

Greetz

 

Need to exclude weekends in hours.png

2 REPLIES 2
Sasidhar01
New Member

HI Sasidhar,

Thank you for you prompt reaction.

Love your solution but it is not what I was looking for.

At first glance your solution is a 9-5 working hour solution. I need a "24 hours" solution to measure performance of the delivery teams.

I will try to modify your formula by stripping down the working hours and or wrap a IF statement for the Saturday express deliveries.

Though!

Thank you very much for your effort an attention.

GreetZ

HansZ

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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