Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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!

1 ACCEPTED SOLUTION
EdwardMoradian
New Member

What you can do with the new feature of Field Parameters (check in Preview features):

  1. Create a Column Called None with all blank values of ""
  2. 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).
  3. Make Field Parameter into a Slicer.
  4. 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.

EdwardMoradian_0-1666389639602.png

 

View solution in original post

6 REPLIES 6
poisson_wang_cn
New Member

I have an article about how to solve this probulem. 

 

https://zhuanlan.zhihu.com/p/690466534

EdwardMoradian
New Member

What you can do with the new feature of Field Parameters (check in Preview features):

  1. Create a Column Called None with all blank values of ""
  2. 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).
  3. Make Field Parameter into a Slicer.
  4. 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.

EdwardMoradian_0-1666389639602.png

 

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.

Masthan_0-1698655753513.png

 

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
Super User

@Anonymous , use a visual level filter

 

measure = int(isfiltered('field parameter'))

 

check above measure =1 in visual level filter

This will hide all rows

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.