Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
How can I count the number of days and weekends as of today in a month?
Saturday & Sunday are considered the weekend.
Solved! Go to Solution.
Hi @gauravnarchal ,
I have created a Calendar table for test, and on my side, today is 2022/4/5.
Please create measures:
Working days = CALCULATE( COUNTROWS(FILTER('Calendar',[Date]<=TODAY())) ,FILTER('Calendar', WEEKDAY([Date],2) in {1,2,3,4,5}))Weekends = CALCULATE( COUNTROWS(FILTER('Calendar',[Date]<=TODAY())) ,FILTER('Calendar', WEEKDAY([Date],2) in {6,7}))
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @gauravnarchal ,
I have created a Calendar table for test, and on my side, today is 2022/4/5.
Please create measures:
Working days = CALCULATE( COUNTROWS(FILTER('Calendar',[Date]<=TODAY())) ,FILTER('Calendar', WEEKDAY([Date],2) in {1,2,3,4,5}))Weekends = CALCULATE( COUNTROWS(FILTER('Calendar',[Date]<=TODAY())) ,FILTER('Calendar', WEEKDAY([Date],2) in {6,7}))
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try this
CALCULATE(Countrows(datesdim), all(datesdim), format(datedim[date],"DDD") = "Sat" && format(datedim[date],"DDD") = "Sun"))
Proud to be a Super User!
Hi @VijayP - I need to count the number of days and weekends as of today of a month?
The answer provided is not working as I am not getting the desired result.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.