DAX date comparison

Forum question_27.01.24.pbix (61.5 KB)
I would like to add a conditional calculate column that counts rows when dates from two different tables are compared with each other. The logic is mentioned in the attached PBI file along with the excepcted output.