Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Txtcher
Helper V
Helper V

Does Excel Data Model Not Have DAX function for NETWORKDAYS?

I have a table loaded into the data model in Excel. I can't find the function for NETWORKDAYS. 

I tried to google this question and could not find an answer.

1 ACCEPTED SOLUTION
anilelmastasi
Super User
Super User

Hello @Txtcher ,

 

NETWORKDAYS is an Excel worksheet function, not a DAX function. In Power Pivot or Power BI, you’ll need to use DAX to replicate that functionality.

 

Firstly you need a calendar table. You can refer this blog:

https://community.fabric.microsoft.com/t5/Desktop/using-the-Calendar-function-and-power-query/td-p/3...

 

How to replicate NETWORKDAYS in DAX?

You can create an calculated column with:

IsWorkday = IF(WEEKDAY(DateTable[Date], 2) <= 5, 1, 0)

 

If this solved your issue, please mark it as the accepted solution.

View solution in original post

1 REPLY 1
anilelmastasi
Super User
Super User

Hello @Txtcher ,

 

NETWORKDAYS is an Excel worksheet function, not a DAX function. In Power Pivot or Power BI, you’ll need to use DAX to replicate that functionality.

 

Firstly you need a calendar table. You can refer this blog:

https://community.fabric.microsoft.com/t5/Desktop/using-the-Calendar-function-and-power-query/td-p/3...

 

How to replicate NETWORKDAYS in DAX?

You can create an calculated column with:

IsWorkday = IF(WEEKDAY(DateTable[Date], 2) <= 5, 1, 0)

 

If this solved your issue, please mark it as the accepted solution.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.