Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 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.
In my data lets say I have values from 1 to 52 representing weeks. If I click 4 I will get the data from week 4, but if I want to get the data from week 1 to week 4 I have to click every number in the slicer. Is there any way to automatically select say if I want to know values from the first 20 weeks, for it to automatically select 1 through 20?
Hi @Anonymous,
If I understand correctly, if you're looking to explicitly set the selected values of a slicer based on some other event, then the core slicer will not support this, as they are geared for the end user's preferences, with the report author guiding them to select the available values.
If I have a preferred set of values I would like the user to see when viewing the report, then I typically publish them with these set. The user is then able to do their own thing and then revert to default to get back to the 'original' preference.
If you're looking to do range-based selection, then as long as your field's data type is set to Whole Number then the slicer will allow range-based selection, and this might save a few clicks for the user, e.g.:
Another option is to constrain the slicer to a range you want, with the undertsanding that values outside this will not be available with such a filter enabled. With recent changes in Power BI Desktop, you can now apply a visual-level slicer, such as:
Range filter applied to slicer visual
Not sure if this fully answers your question but might give you some ideas.
Good luck!
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.