cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Nareshbaabu Frequent Visitor
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

Accepted Solutions
Nareshbaabu Frequent Visitor
Frequent Visitor

Re: Restrict Slicer selection count to 2

@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

4 REPLIES 4
v-yulgu-msft Super Contributor
Super Contributor

Re: Restrict Slicer selection count to 2

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.
Nareshbaabu Frequent Visitor
Frequent Visitor

Re: Restrict Slicer selection count to 2

@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

Abduvali Established Member
Established Member

Re: Restrict Slicer selection count to 2

@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

 

Highlighted
Nareshbaabu Frequent Visitor
Frequent Visitor

Re: Restrict Slicer selection count to 2

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

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 46 members 926 guests
Please welcome our newest community members: