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
richrich123
Helper III
Helper III

Dax Network Days

Hello,

 

Could someone point out where I have gone wrong here. I have 'days since last update' which gives me actual days between A and B but I want to also have working days to exlude weekends. I have used NETWORKDAYS to count the working days (Mon-Fri).

 

count_workingdays = NETWORKDAYS('Case'[lastcustomerupdate].[Date], TODAY(),1)
 
It only seems to be deducting 1 day for a weekend rather than 2?
 
richrich123_1-1674588029389.png

 


 

1 ACCEPTED SOLUTION
Padycosmos
Solution Sage
Solution Sage

The Networkdays() counts both the start and end days, if they are working days and the calculation is correct. If you want to exclude the start date , use start date+1 or if you want to exclude today, use today()-1 as the end date

Hope this helps

Padycosmos_1-1674589529425.png

 

View solution in original post

2 REPLIES 2
Padycosmos
Solution Sage
Solution Sage

The Networkdays() counts both the start and end days, if they are working days and the calculation is correct. If you want to exclude the start date , use start date+1 or if you want to exclude today, use today()-1 as the end date

Hope this helps

Padycosmos_1-1674589529425.png

 

@Padycosmos fantastic, that has sorted it, I had realised it was including the first day. Thanks!

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.