Variable expression dependency not working

Hello guys,
I have Grafana 6.6.2 and wrote an expression dependency but it doesn’t seem to work.

Basically the second expression depends on the first expression however the $Device is never populated when I select in the dashboard as below.

Other things I have tried:

  • Changing floor to multiple selection
  • Changing the WHERE condition to $Floor
    The second query works fine if I replace it with a constant such as “location” = ‘Kitchen’, so it seems to be a bug of some sort.

Any advice to sort this out?


I think you should try this query for your $Device variable:
SHOW TAG VALUES ON "ttndb" FROM "locogen" WITH KEY IN ("name") WHERE "location"=~ /^$Floor$/

Argh still not working, it shows no options.

What is the Refresh setting of the child variable set to? Can you try with “On Time Range Change” if it’s not set to that already?

Yes it was set to On Dashboard Load, I have tried now with your setting

but still not working.