The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
17 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
9 | |
8 |