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
Anonymous
Not applicable

Getting Open Work Days using NETWORKDAYS function

Hi all,

 

I'm trying to calculate the number of open work days for each ticket.

 

I'm using the following function which gets me everything except it doesn't filter out Public Holidays:

IF(OR('MainTable'[Ignore Open Cases]=TRUE,MainTable[Ignore Incomplete Cases]=TRUE()),MainTable[Days Open],NETWORKDAYS([Created On],RELATED('Date Table'[Due Date])))

 

I have a 'Holiday' column in my 'Date Table' that has the list of public holidays. How do i add it in to my formula? If i try to insert ',Date Table[Holidays]' - i get the error that ' a single value for column 'holiday' in table 'Date table' cannot be determined.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , How come to the date table has a due date?

 

On network days simply use a holiday calendar

NETWORKDAYS([Created On],'Table'[Due Date], Summarize(filter(Date, Date[Holiday] =1), Date[Date])  )

 

Power BI - Business day with and without using DAX Function NETWORKDAYS: https://www.youtube.com/watch?v=Qs03ZZXXE_c

 

https://medium.com/@amitchandak/power-bi-dax-function-networkdays-5c8e4aca38c

 

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , How come to the date table has a due date?

 

On network days simply use a holiday calendar

NETWORKDAYS([Created On],'Table'[Due Date], Summarize(filter(Date, Date[Holiday] =1), Date[Date])  )

 

Power BI - Business day with and without using DAX Function NETWORKDAYS: https://www.youtube.com/watch?v=Qs03ZZXXE_c

 

https://medium.com/@amitchandak/power-bi-dax-function-networkdays-5c8e4aca38c

 

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

The Due Date i have is a calculated one(i.e within 5 Business Days of date created). Ideally should it have it's own table? 

 

Anyways your solution didn't work but i managed to figure it out by including the following: ,1,VALUES('Date Table'[Holiday]).

 

I'll mark yours as the solution as it did assist me somewhat. thank you

can you place the entire line of code. 

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.