I have a pivot table set up with a few slicers, in a parent/child setup.
e.g. for cars, the "Brand" would be the parent and the "Model" will be the child.
The user selects the brand from Slicer_Brand, and then selects the model from Slicer_Model.
My aim is to clear the filter on the child slicer when the selection in the parent slicer is changed.
e.g. User selects "McLaren" from Slicer_Brand and then "P1" from Slicer_Model. Data is shown.
The user then selects "Ferrari" from Slicer_Brand. Data is rightly not shown since the combination "Ferrari P1" does not exist. This is where I would like to reset the filter on Slicer_Model so that all models are selected, ready for reselection by the user.
I have a line of code that clears the filter [ThisWorkbook.SlicerCaches("Slicer_Model").ClearManualFilter] but I don't know how to trigger it on the event that Slicer_Brand changes selection.
Does anyone have any ideas? Thanks.
Bookmarks