Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
HI,
need to get count of working weekdays till now in a year using dax
help is appreciated.
Regards,
Raju
Solved! Go to Solution.
Hi @Anonymous ,
You may create calendar table, calculated column and measure like DAX below.
Table: Calendar=CALENDAR((YEAR(TODAY()),1,1), TODAY())
Column: If Weekday= IF(NOT WEEKDAY(calendar[Date]) IN {1,7}, 1, BLANK())
Measure: Total workdays = CALCULATE(COUNT(Calendar[Date]),FILTER(Calendar, Calendar[If Weekday]=1))
You can refer to the similar case: https://community.powerbi.com/t5/Desktop/DATEDIFF-Working-Days/td-p/130662 .
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You may create calendar table, calculated column and measure like DAX below.
Table: Calendar=CALENDAR((YEAR(TODAY()),1,1), TODAY())
Column: If Weekday= IF(NOT WEEKDAY(calendar[Date]) IN {1,7}, 1, BLANK())
Measure: Total workdays = CALCULATE(COUNT(Calendar[Date]),FILTER(Calendar, Calendar[If Weekday]=1))
You can refer to the similar case: https://community.powerbi.com/t5/Desktop/DATEDIFF-Working-Days/td-p/130662 .
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
You would need to have a 'Date'[IsWorkingDay] column in your calendar table.
'Date'[IsWorkingDay] = NOT WEEKDAY( 'Date'[Date] ) IN { 1,7 }Find out how to do all this here:
https://www.sqlbi.com/articles/counting-working-days-in-dax/
Good Luck! 🙂
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 53 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 116 | |
| 105 | |
| 41 | |
| 34 | |
| 25 |