Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet 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/
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.