Variable to elasticsearch query result

Hi,

It is posible create a variable in grafana to store an elasticsearch query result?
I need store the query result to use in threshold definitions.

On documentation I see only examples to three formats.

Thabks

Hi,

You cannot set threshold levels based on template variable/dynamically.

Marcus