Create a new series when alias variable contains +1 value

Hi,

Influxdb/ Grafana

I have an variable of “CountryCode” which is a custom comma separated list of country codes- example: (UK, US, FR) which allows multiple values to be selected

In a time series panel I have a query which contains ““env” =~ /^$CountryCode$/” and the alias for this query is $CountryCode

When I select more than one Country Code from the dashboard (example UK + FR) I want to generate a new series on the same timeseries graph along with a new item in the legend. One series for UK, one for FR

Instead the legend changes to {UK,FR} and the series is a combination of data from the two codes.

Is it possible to achieve my goal?