cancel
Showing results for
Did you mean:
Helper I

## Ceck if calculated Date is a holiday

Hello everyone, can someone please help me with my problem: I'm calculating a date (measure). Now I want to check whether the date appears in another table (I have listed all holidays-dates in this table). How can I do this? Thank you for your help! Kinds regards Michael
1 ACCEPTED SOLUTION
Community Champion

Hi, @Power_MN

Please check the below picture and the pbix file's link down below.

Holiday or not =
IF (
DATE ( YEAR ( [Forecast next Order Date] ), MONTH ( [Forecast next Order Date] ), DAY ( [Forecast next Order Date] ) )
IN ALLSELECTED ( Holidays[Holidays] ),
"Holiday",
"Not Holiday"
)

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

Best regards, JiHwan Kim

5 REPLIES 5
Community Champion

Hi, @Power_MN

Please check the below picture and the sample pbix file's link down below.

Is Holiday =
IF (
SELECTEDVALUE ( Dates[Date] ) IN ALLSELECTED ( Holidays[Holiday] ),
"Holiday",
""
)

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

Best regards, JiHwan Kim

Helper I

Maybe I don't formulate it right.

My "Date" is a measure (not a column). This calculated Date should be checked. If the calculated Date is also in the table "Holiday", the measure should return "Holiday".

Thank you

Kind regards

Michael

Community Champion

Hi, @Power_MN

If it is OK with you, please share your sample pbix file's link here. It will help me a lot to make less confusion.

Thank you.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

Best regards, JiHwan Kim

Helper I

@Jihwan_Kim

the sample file can be open by using following OneDrive Link:

https://1drv.ms/u/s!Aosv7ECDrc5dtzH5Tu0IrWdeW4cU?e=4TXlfV

Kind regards

Community Champion

Hi, @Power_MN

Please check the below picture and the pbix file's link down below.

Holiday or not =
IF (
DATE ( YEAR ( [Forecast next Order Date] ), MONTH ( [Forecast next Order Date] ), DAY ( [Forecast next Order Date] ) )
IN ALLSELECTED ( Holidays[Holidays] ),
"Holiday",
"Not Holiday"
)

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

Best regards, JiHwan Kim

Announcements