Use a query result in another query

Hi,

I would like to know if it was possible by any way to use the result of a query inside a Graph panel for another query in this same Graph ?

The goal of this is for example doing a unique Count of a specific value with the Qurey A and then with the query B plotting the Average of this Unique Count

thanks for the help

Alex

AFAIK it is not possible. If possible, try to move all this computation issues outside and let Grafana only for observability.

Well ok I was suspecting this. But how can I build this computation with elastic for example ?