Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

How to script a parameter query to return "SelectAll" when slicer "Select All" is unselected?

By default a slicer having the "Select All" (and all other values) unselected act in same way on a table visual object as when "Select All" is selected. I have used the Dynamic M query parameters ex...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Thanks for the response! But I am not sure I understand your suggestion. 

    Should the SelectAllProducts Else-condition <else false> be replaced with <else ColorParameter = "__SelectAll__"> ?

     

    The modification does not seem to make any different outcome. The slicer with all values unselected does still produce a query that returns an empty table visual.

     

    After some testing I used this coding method to check if the slicer is unselected (the blankProdType expression). I also test the AllProductsSelected expression (valgtAlleProdTyper) and finally test the combination of selections (Text.Combine) to formulate the dynamic WHERE-condition. It works fine but it is maybe not the best way to solve the issue.