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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to make a from to date slicer as buttons?

Hello, I need a slicer that filters my visuals on the dates. This has to be made up of buttons, where each button selects a time frame. So I would have a button "One year", "One quarter", "One Month", "One fortnight", and "One week". The one year selection should obviously also show the dates in the other selections. If someone could point me in the right direction, that would be amazing!

2 REPLIES 2
Adamboer
Responsive Resident
Responsive Resident

It sounds like you're looking for a custom slicer that filters your visuals based on specific time frames. You can create this by using a combination of a measure and a custom visual like Chiclet Slicer or Timeline Slicer.

First, create a measure that calculates the date range for each time frame, for example, "One year" would be the date range between today's date and one year ago. Then, use this measure to create a custom column in your data that assigns each date to its corresponding time frame.

Next, add the Chiclet or Timeline Slicer visual to your report page and use the custom column as the field to filter on. You can customize the buttons on the slicer to match the time frames you mentioned, and when a button is selected, the visual will filter accordingly.

I hope this helps! Let me know if you have any further questions.

ppm1
Solution Sage
Solution Sage

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors