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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
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.