Generate variables' list depending on another vars


Is it possible to show list of variables that would depend on value of other selected variable?

Simple example, two variables ‘database’ and ‘table’, and corresponding fields in the dashboard. By default in the ‘table’ field I see full list of tables independently of selected database.
I’d like to see a list only of those tables who belongs to the database selected in ‘database’ field.

P.S. Datasource - prometheus, variables based on label_values() query.

Regards, Alexey

Solved. It’s possible to use already defined variables