Change Layer and Apply Filter

I'm trying to add a change layer interaction (which I got to work successfully), but on the new layer I want to simulataneously apply a filter to a visualization.


For instance Layers 1, 2, 3 will all have a change layer interaction to show Layer 4, but based on if I clicked from Layer 1 to Layer 4 or Layer 2 to Layer 4, I would like a filter applied to the visualization on Layer 4 that will change simultaneously.

You can have more than one interaction on the same action. In your case, I think adding a Filter interaction to the same click event should do the trick.


If you need more flexibility than what the interactions offer, you can add a script instead, which will change the filter parameter. For script examples with the different filters, see the article Modify a filter / view parameter using scripting.