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
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
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
110 | |
96 | |
90 | |
81 | |
69 |
User | Count |
---|---|
157 | |
125 | |
116 | |
111 | |
95 |