Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 :
Here's how to do that demonstrated by the Master of DAX, Alberto Ferarri: https://youtu.be/JgeUhXkxXbU
@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)
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))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
25 | |
20 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |