Forum Discussion
JC2022
3 years agoHelper III
Exclude dates from another table
Hi,
If I have the formula below but I would like to exclude the dates that are in my Holidays table (a different table). How do I do this?
=
SUMX (
Schedule,
SUMX (
FILTER (
Hours,
Hours[Schedule ID] = Schedule[Schedule ID]
&& Hours[Date] >= Schedule[From Date]
&& Hours[Date] <= Schedule[To Date]
),
Schedule[Hours]
)
)
JC2022
Just add 0 like:= SUMX ( Schedule, SUMX ( FILTER ( Hours, Hours[Schedule ID] = Schedule[Schedule ID] && Hours[Date] >= Schedule[From Date] && Hours[Date] <= Schedule[To Date] && NOT ( Hours[Date] IN VALUES ( Holidays[Date] ) ) ), Hours[Hours] ) ) + 0
5 Replies
- rautaniket0077Resolver I
Hi JC2022,
you can use the below dax to exclude or include date.The Date column used in above table is from Holiday Table and if these dates are there is Orders table then are "Included" else "Excluded"
Please accept my answer as solution if it solves your issue.