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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.