Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe 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.
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!
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.
Please see these articles.
Custom Date Period Selections in Power BI - BI Elite
Dynamic Date Slicer In Power BI Using A Period Table - Unlock the Power of Data (enterprisedna.co)
Pat