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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
tommy_g
Helper V
Helper V

I need to slice by dates which are not symmetrical, i.e. custom date ranges

I have a client request to provide a slicer for custom date ranges, which will then be sync'd across multiple report pages.

Effectively, they want shortcuts which replace the standard date slicer in "relative" mode.

Currently this is a hidden control and we set dates through use of bookmarks.

Unfortunately, independed buttons provide no visual cue as to which one is selected.

Custom date slicer.JPG

I'd like to use a horizontal slicer with the four options, similar to the following, just with each button setting a different date range as indicated above. Visual feedback is essential

Custom date slicer alternative.JPG

I am guessing there would be a DAX routine with a Switch based on button value.

If that can be done, I'm still clueless on how I would set the hidden relative slicer, which works functionally and sync's well.

 

Looking for low-code / no-code ideas.

3 REPLIES 3
mahoneypat
Microsoft Employee
Microsoft Employee

This would be a good application of Calculation Groups using Tabular Editor.  You can make a Calculation Item for each time period, and then use that column in your slicer.

Introducing Calculation Groups - SQLBI

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Sounds like a viable plan. I will dig into it this weekend.

 

Am I to understand that whatever my calculation group produces, it will be attached to the slicer button pushed?

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