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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!