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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Count open days of any month

Hello, 

 

I'm working on a dax to calculate the open days in a month. For example, I would like to calculate the open days of March month. So the dax that I wrote is : 

 
OD = CALCULATE(DISTINCTCOUNT('Calendar'[Date]),FILTER('Calendar','Calendar'[Month]=MONTH(NOW())+1))
 
So the result is: 31 days, is the number of all days of March month.
Do you have any tips to calculate the open days of any month? 
 
Thank you in advance.
Regards,
4 REPLIES 4
Anonymous
Not applicable

Here's how to do that demonstrated by the Master of DAX, Alberto Ferarri: https://youtu.be/JgeUhXkxXbU

amitchandak
Super User
Super User

@Anonymous  ,

Not very clear what is open days?

 

Total day in current month = day(eomonth(Today(),0)

Total day in next month = day(eomonth(Today(),1)

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak 

Open days are the days that we work on: from Monday to Friday. For example, for March the open days are 23, not 31. I would like to calculate it for all months! 

 

Regards,

@Anonymous , for next month

Work Day = COUNTROWS(FILTER(ADDCOLUMNS(CALENDAR(EOMONTH(TODAY(),0)+1, EOMONTH(TODAY(),1)),"WorkDay", if(WEEKDAY([Date],2) <6,1,0)),[WorkDay] =1))
Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.