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
Highlighted
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 

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

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

 

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
Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

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

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 135 members 1,878 guests
Please welcome our newest community members: