Map interaction - filtering by column value

I have a dashboard with a map and a table view. The table view is grouped by two columns. I’m wanting to be able to select one of the items in the column and have the map filter to this column. e.g. column “Campaign” with 4 different values. When I select the grouped value of “Campaign 1”, I only want to see “Campaign 1” icons on the map. I think I’ve seen this before but can remember where.

May be there are smarter options than the one described below.
One option is you could create filters on both the table view and map view based on the approach described in the sample app below.

https://www.appsheet.com/samples/Allow-the-user-to-filter-a-view-based-on-a-form?appGuidString=91266cff-e843-46b8-a42b-3d85afedb37f