Reference result of query (or expression) in another query on same panel

Hi,


I use Grafana 10.x OSS v1 and InfluxQL.
I want to use the result of expression “P” (a value in electrical watts) in my query “Q” to compute the energy in Watthours. What do I need in the line FROM … to proper reference the output of P, e.g., the result of “$L + $N”?
The formula in the line SELECT … is the typical one for computing Wh from W, but how to reference it?
Any help deeply appreciated.

You can’t do that. P exists only in the Grafana. Q is executed in InfluxDB, which doesn’t have any clue about P format/result.

ok, thank you for your support.