Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi,
In my report I want to view MTD and YTD data percentages. They are already calculated. Each category MTD and YTD has subcategories Early, Late, On time and 'On time and early'. For each category and subcategory I want to have a slicer which filters the data. So one filter MTD/YTD and second filter early, late etc.
The second filter I already created with this measurement:
Now I have this visual:
So what I want is an extra slicer MTD / YTD so that the user can filter on MTD or YTD data (or even both if technically possible).
Can anyone advise please?
Thanks in advance.
Solved! Go to Solution.
you could do:
1) nested SWITCH - outer one would cover YTD/MTD, the inner is the one you have right now and its YTD equivalent
2) merge the 2 to have single switch with 2 slicers (one on 'Time Cut' and second one on 'OTD'):
Time Cut | OTD | Key |
YTD | On time and early | YTD_OTAE |
YTD | On time | YTD_OT |
YTD | Early | YTD_E |
YTD | Late | YTD_L |
MTD | On time and early | MTD_OTAE |
MTD | On time | MTD_OT |
MTD | Early | MTD_E |
MTD | Late | MTD_L |
Measure Selection = SWITCH( UPPER(SELECTEDVALUE(Table[Key])), "YTD_OTAE", [YTD % On time], "YTD_OT". [YTD % On time], "YTD_E", [YTD % Early], "YTD_L", [YTD % Late], "MTD_OTAE", [MTD % On time or early], "MTD_OT". [MTD % On time], "MTD_E", [MTD % Early], "MTD_L", [MTD % Late], BLANK() )
you could do:
1) nested SWITCH - outer one would cover YTD/MTD, the inner is the one you have right now and its YTD equivalent
2) merge the 2 to have single switch with 2 slicers (one on 'Time Cut' and second one on 'OTD'):
Time Cut | OTD | Key |
YTD | On time and early | YTD_OTAE |
YTD | On time | YTD_OT |
YTD | Early | YTD_E |
YTD | Late | YTD_L |
MTD | On time and early | MTD_OTAE |
MTD | On time | MTD_OT |
MTD | Early | MTD_E |
MTD | Late | MTD_L |
Measure Selection = SWITCH( UPPER(SELECTEDVALUE(Table[Key])), "YTD_OTAE", [YTD % On time], "YTD_OT". [YTD % On time], "YTD_E", [YTD % Early], "YTD_L", [YTD % Late], "MTD_OTAE", [MTD % On time or early], "MTD_OT". [MTD % On time], "MTD_E", [MTD % Early], "MTD_L", [MTD % Late], BLANK() )
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.