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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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