Forum Discussion
Field Parameter - select none in slicer
Hi all,
I'm using the field parameter preview function in one of my reports to select columns for a table. However, I would like the default of the slicer to be 'select none' if none of the fields is selected. By default it is 'select all'.
This might not be specific to field parameter slicers, but to slicers in general. Is there a way to achieve this?
Thanks!
What you can do with the new feature of Field Parameters (check in Preview features):
- Create a Column Called None with all blank values of ""
- Create a Field Parameter to select None field as well as the other fields you want (this lets you combine the fields together into 1 Slicer).
- Make Field Parameter into a Slicer.
- Now you will have a Slicer with None option that will give a blank result. Select for this as the default to not show any results. Save the dashboard in this state to keep the selection this way. You can select the other fields to populate data.
7 Replies
- EdwardMoradianNew Member
What you can do with the new feature of Field Parameters (check in Preview features):
- Create a Column Called None with all blank values of ""
- Create a Field Parameter to select None field as well as the other fields you want (this lets you combine the fields together into 1 Slicer).
- Make Field Parameter into a Slicer.
- Now you will have a Slicer with None option that will give a blank result. Select for this as the default to not show any results. Save the dashboard in this state to keep the selection this way. You can select the other fields to populate data.
- MasthanFrequent Visitor
Hi EdwardMoradian Thank you for your reply on this.
Are there any other ways to handle this None column (hiding from table visual) because users point of view it is not ok to show them in the visual level.- hansei
Helper V
Instead of a blank column, or a measure with an empty value, use this hack courtesy of Barney Lawrence . Add a row to your table like this.
Percentiles = { ("None", "Any non-empty string", 0), ("Network P0", NAMEOF('Table'[Measure]), 1) }The column will not show up at all whether it is selected, or all are selected.
- amitchandak
Super User
Anonymous , use a visual level filter
measure = int(isfiltered('field parameter'))
check above measure =1 in visual level filter
- hansei
Helper V
This will hide all rows
- AnonymousNot applicable
- shuhaozhRegular Visitor
Thank you!! This should be selected as the best answer! A little bit translation here: first enable "select all" in slicer setting->selection, then manually un-check all the items in the slicer, finally disable the "select all".