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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Function NETWORKDAYS not available in DAX

Hi, I'm using PowerBI 2.119.986.0 64-bit (July 2023) in which I try to build a measure using the NETWORKDAYS function. But it looks that it's not available for me. DAX doesn't recognize this formula. Am I doing something wrong?

Tigo1962_0-1698413696617.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I found the issue. NETWORKDAYS isn't a available function when using a direct link to the database. It's only available when using an import.

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

I found the issue. NETWORKDAYS isn't a available function when using a direct link to the database. It's only available when using an import.

aha!  that makes sense, all modelling should be done in the source if you can if you using direct query.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




vanessafvg
Community Champion
Community Champion

you need to pass networkdays a set of date values

 

https://learn.microsoft.com/en-us/dax/networkdays-dax

https://www.mssqltips.com/sqlservertip/7359/calculating-work-days-power-bi-dax-networkdays-function/





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

Thanks for your answer. I know the format of the formula. My problem is that DAX doesn't show the formula as one I can use (see my screen print).

Tigo1962_0-1698482186642.png

 

can I ask what you doing, are you creating a column, measure, table?  you need to give more information

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

Hi, I'm trying to build a measure.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.