Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi Everyone,
Im self teachign myself to use powr BI and have been able to do several things now, but I am not able to find a formula I need.
I have a column which shows the month and the year, I need a formaul that will read that month/year and come back with how many days in that given month were "workign days"
Thats the column I have I need for it to show next to it for example "22" (If there were 22 working days on February, and "25" if there were 25 working dasy on January an
Solved! Go to Solution.
Hi, @LCL
You can try the following methods. Create a new date table.
Table:
Date = CALENDAR(DATE(2022,1,1),DATE(2022,12,31))
Column:
Weekday = WEEKDAY([Date],2)Month = FORMAT([Date],"mmmm")days =
CALCULATE (
COUNT ( 'Date'[Date] ),
FILTER ( 'Date', [Weekday] <= 5 && [Month] = EARLIER ( 'Date'[Month] ) )
)
working days = [Month]&[days]
If your form is similar to this. You can join two tables with Month.
Is this the result you were hoping for?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @LCL
You can try the following methods. Create a new date table.
Table:
Date = CALENDAR(DATE(2022,1,1),DATE(2022,12,31))
Column:
Weekday = WEEKDAY([Date],2)Month = FORMAT([Date],"mmmm")days =
CALCULATE (
COUNT ( 'Date'[Date] ),
FILTER ( 'Date', [Weekday] <= 5 && [Month] = EARLIER ( 'Date'[Month] ) )
)
working days = [Month]&[days]
If your form is similar to this. You can join two tables with Month.
Is this the result you were hoping for?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@LCL , There new function provided by power bi networkdays
https://docs.microsoft.com/en-us/dax/networkdays-dax
do you have month start and end date in you table
If you have date then
Start Date of month = eomonth([Date],-1)+1
end Date of month = eomonth([Date], 0)
Old method
How to calculate Business Days/ Workdays, with or without date table: https://youtu.be/Qv4wT8_P-AA
Thanks but thats the problem, I dont have the dates on the table only the month 😞
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 32 | |
| 27 | |
| 26 |