I am new in DAX query and trying to to get the distinct list of promotion_name
from the promotion
table between two dates which are from other two columns of that table. I have written the below DAX query for a measure. However, I am getting an error. I am sure the query is not correct. Can I get some help?
Measure =
CALCULATE(VALUES(promotion[promotion_name]),
FILTER (ALL(promotion),
promotion[start_date] >= DATE(1997,1,1) &&
promotion[end_date] <= DATE(1997,12,31)))
Basically I want to implement the this SQL query in DAX:
select promotion_name
from promotion
where start_date >= '1998-01-01 00:00:00' AND
end_date <= '1998-12-31 00:00:00'