Change one query variable when another one changes?

I’ve got a “main” query variable in a dashboard. That variable can be changed by the dashboard’s user to change the queries being performed by the panes.

I’ve got another variable - a datasource one - that is used to decide from which datasource to get the information. In most cases, when the user changes the “main” variable, I’d like the datasource variable to change as well (but not in all cases).

Is there a way to have the datasource variable depend on a a query variable?

I would like to know that doubt. +1

So I ended up walking around the problem by having a separate dashboard with the datasource variable, and then linking from my original dashboard to that one using a carefully-allocated mix of the query variable and that datasource name. Good enough for me,