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

Is there a way to make a slicer option always selected and hide it so the user cannot deselect it

I have this slicer with three options

 

The user will always need to have the thrid option selected. Is there a way to make sure it is always selected and then hide it so the user cannot de select it?

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, for example you have a column just like this:

vkalyjmsft_0-1654244131485.png

Here's my solution. Create a new table.

vkalyjmsft_1-1654244301032.png

Make relationship between the two tables and set the filter direction to both.

vkalyjmsft_2-1654244337019.png

Put the slicer column from the new table into a slicer.

vkalyjmsft_3-1654244450800.png

Get the result. User can only filter the Filter1 and Filter2, Always On row is always on.

vkalyjmsft_4-1654244463855.png

vkalyjmsft_5-1654244474545.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

8 REPLIES 8
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, for example you have a column just like this:

vkalyjmsft_0-1654244131485.png

Here's my solution. Create a new table.

vkalyjmsft_1-1654244301032.png

Make relationship between the two tables and set the filter direction to both.

vkalyjmsft_2-1654244337019.png

Put the slicer column from the new table into a slicer.

vkalyjmsft_3-1654244450800.png

Get the result. User can only filter the Filter1 and Filter2, Always On row is always on.

vkalyjmsft_4-1654244463855.png

vkalyjmsft_5-1654244474545.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

That is perfect thank you!

@v-yanjiang-msft  Nice solution. Easy to implement and use. 
@Anonymous Try to implement this in to your main data. See how difficult it is to create that second table. 









dhruvinushah
Responsive Resident
Responsive Resident

Hi @Anonymous , Varun, 
You can do so by simply hiding the slicer visualization from the page.
On your Power BI Desktop, go to the View Tab in the ribbon. Click on Selection button. 
It will open up the selection panel on the right of your report. Next Click on the eye button next to your slicer's name to hide that particular visual. 

Reference: 

dhruvinushah_0-1654013297150.png

 

You can also do this by applying the slicer selection as a page filter and hiding it from report users.
Reference: 

dhruvinushah_1-1654013389412.png

 

Hope this helps, tag me (@) if you need more help on it. Feel free to mark the answer as a solution if it helped you.
Thanks!

 

 









Anonymous
Not applicable

Hi 

 

Thanks, but this does not allow the user to then select the other options on the slicer. I have three select options. One must always be selected and the other two can be toggled on and off. Is this possible?

johnt75
Super User
Super User

You can set the column from the slicer as a filter to be used on all pages, and you can lock it too. Just drag the column on to the "Filters on all pages" section.

Anonymous
Not applicable

This then removes the ability for the user to select the other 2 options from the three

The options I have are 

- Filter1

- Filter2

- AlwaysOn

 

The user can select Filter1 or/and Filter2, but AlwaysOn needs to always be available for the user. Is this possible?

ribisht17
Super User
Super User

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.