Deselection in a Dropdown – multiselect control

Hi,
I have a control that is based on a dataset parameter and it should have Select all option as well.
I followed the solution provided in Advanced use cases of dataset parameters - Amazon QuickSight to achieve the functionality.

The solution works but I am not able to perform deselection like we do usually. For example, if the dropdown displays Dept1, Dept2…, Dept 100 then I would like to select all except Dept 50, Dept 51. How can I achieve this?

Hi balakumar, can you share your screenshot for us to understand the issue better? As I tested in my QS and it can deselect.