Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi all,
Can you please support with the following DAX.
I try to calculate networking day between 2 dates, excluding holidays and weekend.
My holidays table is multi-dimensional, it covers every countries. I tried this but it is not a valid syntax...
= NETWORDAYS( _startdate, _enddate, 1, VALUES(date, country = "FR"))
Best.
Solved! Go to Solution.
=
NETWORKDAYS (
_startdate,
_enddate,
1,
DISTINCT (
SELECTCOLUMNS ( FILTER ( 'Holidays', [country] = "FR"),"Date",[date] ) )
)
)
=
NETWORKDAYS (
_startdate,
_enddate,
1,
DISTINCT (
SELECTCOLUMNS ( FILTER ( 'Holidays', [country] = "FR"),"Date",[date] ) )
)
)
Just trying your solution and it works well. Little bit tricky but I will remember the tips.
thanks a lot for your help 🙂
User | Count |
---|---|
14 | |
10 | |
7 | |
6 | |
5 |
User | Count |
---|---|
30 | |
19 | |
12 | |
7 | |
5 |