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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors