Hi all,
I can’t find a way to define variable based on other variable, if other variable is in multi value mode.
I use postgres datasource.
I was using influxdb before, and it worked as expected
Example :
1st variable : select account_id from accounts
→ OK. Variable defined in multi value mode
2nd variable :
SELECT distinct country_id from countries where account_id IN ($account_id)
→ Templating. Template variables could not be initialized: Cannot read property ‘meta’ of undefined
If I set account_id variable in single value mode, it works as expected and I can get my countries variable as expected
Syntax is correct beacause I can use in ($account_id) in graphes/tables/singlestat in my dashboard, with multi value enabled.
Problem only occurs when trying to define variable .