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?
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.
Did I answer your question? Mark my post as a solution!