Forum Discussion
Anonymous
6 years agoNot applicable
How exclude holidays from networking days
Hello Community, I have created networkdays between two days (it includes holidays and excludes weekends) by using this: NetWorkDaysEND = VAR Calendar1 = CALENDAR(MIN('Query1'[END]),MAX('Quer...
- 6 years ago
Hi Anonymous ,
we can create such a measure to meet your requirement.
NetWorkDaysENDExcludeHoliday = VAR Calendar1 = CALENDAR ( MIN ( 'Query1'[END] ), MAX ( 'Query1'[FYEND] ) ) VAR Calendar2 = ADDCOLUMNS ( Calendar1, "WeekDay", WEEKDAY ( [Date], 2 ) ) RETURN SUMX ( FILTER ( Calendar2, [WeekDay] <= 5 ), IF ( CONTAINS ( holidays, 'holidays'[Date], [date] ), 0, 1 ) )BTW, pbix as attached.
Best regards,
Community Support Team _ DongLi
If this post helps, then please consider Accept it as the solution to help the other members find it more
v-lid-msft
6 years agoCommunity Support
Hi Anonymous ,
we can create such a measure to meet your requirement.
NetWorkDaysENDExcludeHoliday =
VAR Calendar1 =
CALENDAR ( MIN ( 'Query1'[END] ), MAX ( 'Query1'[FYEND] ) )
VAR Calendar2 =
ADDCOLUMNS ( Calendar1, "WeekDay", WEEKDAY ( [Date], 2 ) )
RETURN
SUMX (
FILTER ( Calendar2, [WeekDay] <= 5 ),
IF ( CONTAINS ( holidays, 'holidays'[Date], [date] ), 0, 1 )
)
BTW, pbix as attached.
Best regards,
Community Support Team _ DongLi
If this post helps, then please consider Accept it as the solution to help the other members find it more
- Anonymous6 years agoNot applicable