Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext 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
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.
Solved! Go to Solution.
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:
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. ✅
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:
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. ✅
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |