Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

View all the Fabric Data Days sessions on demand. View schedule

Reply
lherbert501
Post Partisan
Post Partisan

Slicer 3/6/9/12 months for whole page

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

 

 

2 ACCEPTED SOLUTIONS
Shubham_rai955
Power Participant
Power Participant

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.

How to do it:

  1. Create a disconnected slicer table with the fixed period options (3, 6, 9, 12) months.

  2. 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.

  3. Modify all measures to use this dynamic filter measure instead of direct date filters.

  4. Place the slicer on the page (single slicer, no relative date slicer).

  5. 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.

View solution in original post

parry2k
Super User
Super User

@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.

View solution in original post

2 REPLIES 2
parry2k
Super User
Super User

@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.

Shubham_rai955
Power Participant
Power Participant

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.

How to do it:

  1. Create a disconnected slicer table with the fixed period options (3, 6, 9, 12) months.

  2. 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.

  3. Modify all measures to use this dynamic filter measure instead of direct date filters.

  4. Place the slicer on the page (single slicer, no relative date slicer).

  5. 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.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors