If I understand you correct you would want to do something like this.
One measure that changes depending on the datefilter you have filtered?
My suggestion is as follows:
Create a table (DatefilterTable) that has the following columns
SortKey DateFilter 1 YTD 2 Last Month 3 Last Week 4 Last Day
Sortkey is not needed but can be useful if you want a specific sortorder.
Create a measure for each YTD, Last Month, Last Week, Last Day filter. Example [Measure YTD], [Measure Last Month]..
Finally you create: FilterMeasure = IF(HASONEVALUE(DatefilterTable[DateFilter]),SWITCH(VALUES(DatefilterTable[DateFilter),"YTD",[Measure YTD],"Last Month",[Measure Last Month],"Last Week",[Measure Last Week],"Last Day",[Measure Last Day],[Your Default Measure])
[Your Default Measure] can be any of the above measures. It will display when you have no filter selected.
The DateFilter column can then be used in a slicer 🙂
I have created the help table and the measure underneath but cannot get it to work. The measures are not showing when I put FilterMeasure into a graph. The individual measures are working as they should. What might be wrong?