Forum Discussion
tabuzahra
6 years agoHelper II
Count Weekdays Between Two Date Excluding Weekends
Dears, Thank you for your usual support. Kindly, I would like to count the weekends between two dates. The scenario is, I have projects creation date and there is some projects have initial base...
- 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
v-eachen-msft
6 years agoCommunity Support
Hi tabuzahra ,
You could use COUNTROWS() function. Then you could put date range and conditional column = 0 into your filter.