Forum Discussion
Count Weekdays Between Two Date Excluding Weekends
- 6 years ago
Max date can be replaced with today
Working day = CALCULATE(COUNTx(FILTER(Project,Project[Creation Date]<=max('Date'[Date]) && (ISBLANK(Project[End Date]) || Project[End Date]>max('Date'[Date])) && date[Weekday]=1),(date[date])) ,CROSSFILTER(Project[Creation Date],'Date'[Date],None))Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin
Max date can be replaced with today
Working day = CALCULATE(COUNTx(FILTER(Project,Project[Creation Date]<=max('Date'[Date]) &&
(ISBLANK(Project[End Date]) || Project[End Date]>max('Date'[Date])) && date[Weekday]=1),(date[date]))
,CROSSFILTER(Project[Creation Date],'Date'[Date],None))
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin