March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Current State: we have a slicer that toggles all measures on a dashboard to show either TYD or MTD for the date range selected - the date range uses a date hierarchy for year and month. Every measure has a SWITCH() statement to calculate the YTD/MTD depending on what is selected in that slicer (see example in screenshot below for calculating Net Sales)
Desired State: a Field Parameter that users can toggle for YTD/MTD that changes EVERY measure on the entire canvas for all visuals WITHOUT using SWITCH() statements.
@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]) )
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |