Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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. ✅
| User | Count |
|---|---|
| 15 | |
| 8 | |
| 6 | |
| 6 | |
| 5 |