The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 |
---|---|
13 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
24 | |
14 | |
13 | |
8 | |
8 |