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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.