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
jupiterbi
Frequent Visitor

Calculate Work hours between two differents dates

Hi guys!

 

I'm looking on the internet and I'm having a hard time finding it on the forums. I would like to know some way to calculate the period in hours worked between two dates using DAX and calculated columns.

 

Attached is an example dataset, with all tables the account would be simple: Second date minus first date, less weekend, less rest period, less holidays.

 

Has anyone seen or made some kind of formula like that?

 

https://we.tl/t-z10mtQj5NA 

 

2 REPLIES 2
amitchandak
Super User
Super User

@jupiterbi , Yet to check the file. Refer to the attached file, if that help for calculation of working days 

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

I'm so sorry, @amitchandak . I want to see the results in hours worked. 

 

For example: 

 

05.01 - 18 work hours

08.09 - 25 work hours

09.03 - 3 work hours

...


I have a problem with this dataset, because in Brazil we have a differents holidays. So, I imagine that it's possible with a auxiliar table in this dataset. 

 

Can you help me? You can get my file? 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.