Forum Discussion
Date diff Working Days to Today with filter
I have a table that has all the working days identifed for a project between the start and end date. I need a measure to add up all the working days for each project from Start date to today, Thanks in advance
- Anonymous4 years ago
Hi ctedesco3307 ,
I suggest you to try this code to create a measure.
Measure = VAR _MINDATE = MIN(MAX('Table'[End Date]),TODAY()) VAR _COUNT = CALCULATE(SUM('Table'[Working Day]),FILTER('Table','Table'[MSSContractDay]<=_MINDATE))+0 RETURN _COUNTBest Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
6 Replies
- amitchandak
Super User
A new column
networkdays([Start Date], Today(),1)
https://amitchandak.medium.com/power-bi-dax-function-networkdays-5c8e4aca38c
- ctedesco3307
Resolver II
amitchandak thank you but the function needs to sum the workingday column in the table if workingday = 1 -- not just omit saturday and sunday - we have company holidays also
- amitchandak
Super User
ctedesco3307 , Please refer blog I shared complete information on how to use the holiday calendar
https://amitchandak.medium.com/power-bi-dax-function-networkdays-5c8e4aca38c