Dynamic Legend in visual

Hi All,
I came across an interesting request to create a map showing different configurations of territory distribution. The map should show territories given a selection of a scenario.
Using a shapemap file, published by Radacad a while ago, and an example of a dynamic legend in a line graph, I created the attached map.

Probably other people may be interested in this concept.

What is still desired, currently the scenarios are fixed in the data, is to “fill” the legend table dynamically as well, so you can select a region and allocate it to a territory.
Dyn Territories Shape Map NZ V2.pbix (108.9 KB)


Love how you provided a solution on this topic @Paul . Appreciate your help on it.