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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Nareshbaabu
Frequent Visitor

Restrict Slicer selection count to 2

Hi All,

 

How do we restrict Slicer selection count to 2 . Instead of multiple selection. Can we restrict it to 2 Counts?

1 ACCEPTED SOLUTION

@v-yulgu-msft

 

Default slicer don't have that capability. I've found the custom visual. It's able to restrict selection count to our required number.

 

Smart Filter by OKViz 

View solution in original post

6 REPLIES 6
Abduvali
Skilled Sharer
Skilled Sharer

@Nareshbaabu,

 

 

You can do it but you have to create a new column with only those 2 selections something like this:

  • Say you have departments but you only want to see HR and Sales in a filter
    • Column = if(Table1[Department]="HR", "HR",if(Table1[Department]="Sales","Sales",Blank())

Hope this helps.

 

Regards

Abduvali

 

@Abduvali

 

Instead of specifying HR and sales by default, I need to select it in run time. By default Power BI doesn't support that feauture. 

See my early response. We can acheive it by using custom visual.

v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Nareshbaabu,

 

No. Currently, it is not possible to restrict the slicer selection count to a specific number. It only supports single selection and multiple selection.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yulgu-msft

 

Default slicer don't have that capability. I've found the custom visual. It's able to restrict selection count to our required number.

 

Smart Filter by OKViz 

Hi,

 

I am a newbee! I have added smart filter by OKVIZ but have not found any option that helps me to restrict the selection. Am I missing anything?

 

Best,

Mos

Hi, Working fine for me, just use Filter on the actual visual. See attached screenshot:

Abduvali_0-1593774037397.png

 

Please marked solved if it helped.

 

Regards

Abduvali

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors