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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.