Forum Discussion
Field Parameters to Toggle Entire Dashboard Between Date Ranges
Anonymous , Create two measures MTD and YTD and use that in field parameters
Field Parameters- One solution for Measure Dimension slicer: https://youtu.be/lqF3Wa1FllE?t=70
Hi Amit,
The problem is that I basically need a MTD/YTD slicer for all measures on the entire canvas using field parameters instead of embedding SWITCH() statements into every measure. The screenshot is just showing one measure for this dashboard, however, there are 6 KPIs that would need to change based on the field MTD/YTD parameter selection across the entire dashboard. Is this even possible?
I did create two measures to get the last day of the month selected and one for the last day of the year selected and put those into field parameters however it's not filtering the data any further than the Date Hierarchy slicer does already.
YTD= YEAR(LASTDATE('Date'[Date]) )
MTD = MONTH(LASTDATE('Date'[Date]) )