Forum Discussion
rsch91
1 year agoHelper I
NETWORKDAYS() not excluding holidays
Hi,
I have the following piece of DAX:
VAR tabel_vakantiedagen = CALCULATETABLE(
SELECTCOLUMNS(Dim_Datum, "Feestdag", Dim_Datum[Datum]),
Dim_Datum[IsFeestdag] = 1)
RETURN NETWORKDAYS([Datum gereedgemeld], [Datum factuur], 1, tabel_vakantiedagen) - 1
But it's not properly excluding the holidays. How do I bug fix?
Found the solution. It applied the filter context of the table it was in while it had to ignore it. Just added ALL(Dim_Datum[Datum]) and it worked.
9 Replies
- rsch91Helper I
Found the solution. It applied the filter context of the table it was in while it had to ignore it. Just added ALL(Dim_Datum[Datum]) and it worked.