Forum Discussion

rpinxt's avatar
rpinxt
Solution Sage
2 years ago

Custom Slicers

Do you guys know if there are custom slicers in which you can set the maximum choices a user can make?

 

For instance when you have a slicer with 6 option set the max selectable options to 2 or 3.

 

Preferable not a pro version....

5 Replies

  • Alex87's avatar
    Alex87
    Solution Sage

    Hello,

    You can create a measure that checks the number of selected items in a slicer and uses this to display a message or control other aspects of your report dynamically. This won't prevent more selections but can alert users or influence other report elements based on the number of selections.

    DAX
    Selected Count = COUNTROWS(VALUES('Table'[Column]))

    • rpinxt's avatar
      rpinxt
      Solution Sage

      Thanks Alex87 I read about the dax way.

       

      But still was wondering if there is also a real solution where a slicer has a maximum selection.

  • Alex87's avatar
    Alex87
    Solution Sage

    I am not aware of any solution or custom visual to behave like this. It s a good idea though. 

    • rpinxt's avatar
      rpinxt
      Solution Sage

      Thanks I saw that post too.

      But the custom visual is actually not limiting the slicer, you can still add as much choises as you want.

      And the dax way is not preferred.

      Should be an easy and quick way.

       

      But thanks for the suggestions Anonymous