The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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. ✅