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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
omarevp
Helper II
Helper II

how to calculate total hours from two dates skipping working hours and weekends

Hello guys.

 

I´m trying to calculate working hours from two dates: Order_date (first date) and Created_date (Second date), considering that sometimes the first date might be an empty row.

 

The thing is that I want to exclude non-working hours, weekends and holidays.

 

Would you please help me? thanks in advance.

 

Captura.PNG

 

 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi omarevp

I found similar issue solved , see this link.

to exclude holidays ,you need to create a table contains holidays date, then relate this table to the calendar table(which is created in the DAX)

 

If you have any question, please feel free to ask me.

Best regards

Maggie

View solution in original post

1 REPLY 1
v-juanli-msft
Community Support
Community Support

Hi omarevp

I found similar issue solved , see this link.

to exclude holidays ,you need to create a table contains holidays date, then relate this table to the calendar table(which is created in the DAX)

 

If you have any question, please feel free to ask me.

Best regards

Maggie

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors