How can I change the value of two different Data Source variable using a 3rd variable?

Hi,

I am using two Data Sources in my dashboard. In order to avoid creation of multiple dashboard for each env, I have created the Data Source variable separately. Now by using a third variable Env, I want to filter the other two Data source variable. If I select Dev in Env variable then respective Dev data sources should get filtered out in the other two Data source variable.

Below are my variables, when I select Dev in Env variable:
image

Can someone help me on this?