1

Display "all" in dynamic text when user selects all options in multiselect dropdown

We have a multiselect dropdown slicer that has a lot of values and when a user clicks the All button in the dropdown it is populating the dynamic text with all the options.  Is it possible to just display all in the dynamic text when all are chosen?

 

Thanks,

Rob

1 reply

null
    • Senior Director of Product
    • Ian_Macdonald
    • 2 yrs ago
    • Reported - view

    Hi Rob,

    Not directly. What you could do is to measure the length of the string returned when All is selected, then if that length is found, set the text to "All Selected" otherwise the list of those that were selected.

     

    And the PQL code to generate the Dynamic Text:

    I got the length of all the selected elements by initially just running length(value()). This won't work if the number of elements in your drop down list varies, that may require a different solution.

    Hope that helps.

    Ian

Content aside

  • Status Answered
  • 1 Likes
  • 2 yrs agoLast active
  • 1Replies
  • 28Views
  • 2 Following