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
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
Employee
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
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.