Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Issue with the slicers

Hi, I have a slicer for Plant Names and Fiscal Period with the "Select All" option enabled. However, when I hover over a plant name, it replaces "Select All" with that plant name instead of keeping ...
  • Cookistador's avatar
    1 year ago

    This issue is related to the button sclicer

     

    This issue is known (many posts related to this issue)

    My advice to fix it,  would be to repalce it by Slicer ? (5th line on the screenshot I pasted)

  • Suresh604's avatar
    Suresh604
    1 year ago

    Hey Bhanu! I found another solution that might help. Instead of relying on the default slicer behavior, you can create a measure that dynamically displays 'All Plants' when all values are selected.

    SelectedPlants =
    IF(
    COUNTROWS(VALUES('Plant Table'[Plant Name])) = COUNTROWS(ALL('Plant Table'[Plant Name])),
    "All Plants",
    CONCATENATEX(VALUES('Plant Table'[Plant Name]), 'Plant Table'[Plant Name], ", ")
    )

    This way, even if the slicer replaces 'Select All' with a specific plant name, the card visual will still display 'All Plants' when everything is selected. Let me know if this works for you!