I’m trying to build a query that calculates the difference between the current value and the daily mean.
This is one example that I tried:
SELECT "mean_value" - "mean_precio_promedio" AS "difference" FROM (
SELECT mean("value") AS "mean_precio" FROM "db"."autogen"."serie" WHERE time > :dashboardTime: GROUP BY :interval: ;
SELECT mean("value") AS "mean_precio_promedio" FROM "db"."serie" WHERE time > :dashboardTime: GROUP BY time(1d)
)
Is this possible?
I’m using Chronograf to visualize the query.
influxdb:1.3.5
chronograf:1.3.8