What platform are you using for this? As you have posted in the BI forums, the the structure of your IF statement looks like Excel.
I might be mistaken
For example, In Power Query I would do a join and then use an if to test of the join is null. If null then "Nay" else "Yey"...