cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Easy Filtering

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?Capture.PNG

1 REPLY 1
dm-p
Super User
Super User

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.:

image.png

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 visualRange filter applied to slicer visual

Not sure if this fully answers your question but might give you some ideas.

Good luck!

Daniel

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Helpful resources

Announcements
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Dev Camp Session 26

New Date - Check it Out!

Mark your calendars and join us on Thursday, October 6 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors