How to change variable value based on another variable

Hi,

Im creating something like “environment status” dashboard with status for each application in our company. We have “prod” and “test” environment. I have dropdown env variable to choose the right environment. However, one application has environment “dev” mapped to “test”. So I need in this specific application panel, when “test” env variable is selected, use the “dev” value inside the query. I tried the key-value custom variable, but it didn’t work as I needed.

Could you please help?

Grafana version 10.1.0
Datasource: CloudWatch Alarm plugin for Grafana | Grafana Labs