Get Dates from Slicer
VAR _StartDate = CALCULATE (
MIN('table_name'[date_column])
, ALLSELECTED('table_name'[date_column])
)
VAR _EndDate = CALCULATE (
MAX('table_name'[date_column])
, ALLSELECTED('table_name'[date_column])
)
RETURN<