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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I want to calculate the number of working days between the dates in two columns using M language. Nothing crazy. But I want to do it on one table, not use a date table and then create a calculated column in DAX.
I understand how to check if a date is a working day, but not how to create a calculation in M for subtracting it:
Solved! Go to Solution.
Hi @Anonymous ,
I created a sample pbix file (see attachment) for you, please check whether that is what you want.
In addition, you can refer the following blog to achieve it.
Calculate Workdays Between Two Dates In Power BI
Best Regards
Hi @Anonymous ,
I created a sample pbix file (see attachment) for you, please check whether that is what you want.
In addition, you can refer the following blog to achieve it.
Calculate Workdays Between Two Dates In Power BI
Best Regards
@Anonymous , refer to this old blog
https://www.thebiccountant.com/2020/02/20/date-networkdays-function-for-power-query-and-power-bi/
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 81 | |
| 73 | |
| 46 | |
| 35 |