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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Catalin_Andrei
Regular Visitor

Calculating worked days

Hi all

I am a beginer with Power BI so please be so kind and help me. I have 3 tables :

- Dates 

- Technician 

- Leaves

What I need , is first to calculate how manny working days are in Dates table , and then to calculate the effectivley worked days for each technician which had an leave . 

Thank you in advance for your help!

Dates.jpg

2 REPLIES 2
amitchandak
Super User
Super User

@Catalin_Andrei , Please get the pbix from the link. It has a calendar with working days and same has been used to take date diff

https://www.dropbox.com/s/y47ah38sr157l7t/Order_delivery_date_diff.pbix?dl=0

 

Refer to 2nd page for Working day Diff

Anonymous
Not applicable

Hi there,

 

I did one project similar to this.  The most challenge part is to determine the working days.

 

What I did was to label which day is weekend in the date table first; after that I have to need to create a holiday table which contains the local/national holiday date in the past/current/future years.  By join the date table and the holiday table, I was able to label both weekend date and holiday date in the date table.  In the end, in the date table, the date without any label is the working date.

 

Hope it helps.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.