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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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