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!View all the Fabric Data Days sessions on demand. View schedule
Hi,
Is it possible to create a custom slicer that has previous 3,6,9 and 12 months to end of previous month?
I know there is relative slicer but I want to lock it down and not allow other selections.
I can see some information online but they all seem to be aimed at one measure or visual. Is it possible to do this for a whole page with different measures?
Thanks
Solved! Go to Solution.
Yes, you can create a custom slicer with fixed options like previous 3, 6, 9, and 12 months ending at the previous month, and apply it to the whole page across multiple measures.
Create a disconnected slicer table with the fixed period options (3, 6, 9, 12) months.
Use a DAX measure to calculate the filtering logic dynamically:
Calculate the max date as end of previous month.
Based on slicer selection, filter date range accordingly.
Modify all measures to use this dynamic filter measure instead of direct date filters.
Place the slicer on the page (single slicer, no relative date slicer).
The slicer controls filtering for all visuals/measures via the dynamic DAX logic, locking it to fixed options only.
This locks down selection options and makes the same period slicer affect the entire page consistently across different measures and visuals.
If you want, the slicer visual can also be set to single-select to further enforce only one selection at a time.
This approach overrides default relative slicer flexibility and works at the page level.
@lherbert501 use scalable approach from this post and from there, everything will be super easy to control. Make the changes to this approach as per your needs.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@lherbert501 use scalable approach from this post and from there, everything will be super easy to control. Make the changes to this approach as per your needs.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Yes, you can create a custom slicer with fixed options like previous 3, 6, 9, and 12 months ending at the previous month, and apply it to the whole page across multiple measures.
Create a disconnected slicer table with the fixed period options (3, 6, 9, 12) months.
Use a DAX measure to calculate the filtering logic dynamically:
Calculate the max date as end of previous month.
Based on slicer selection, filter date range accordingly.
Modify all measures to use this dynamic filter measure instead of direct date filters.
Place the slicer on the page (single slicer, no relative date slicer).
The slicer controls filtering for all visuals/measures via the dynamic DAX logic, locking it to fixed options only.
This locks down selection options and makes the same period slicer affect the entire page consistently across different measures and visuals.
If you want, the slicer visual can also be set to single-select to further enforce only one selection at a time.
This approach overrides default relative slicer flexibility and works at the page level.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!