Hi all,
I am using Influx 1.8 with InfluxQL. Below you can see in the top row of the gauges the result of the query ‘loadpoints’
This query is an integral over time that is grouped by a loadpoint tag:
SELECT integral("value") / 3600 FROM "chargePower" WHERE $timeFilter GROUP BY time(1d), "loadpoint"::tag fill(none) tz('$timezone')
Therefore it creates two tables for each loadpoint:
Now I want to create the sum of each loadpoints integral (I need that sum later in another calculation). Is there a way how I can achieve this?
Previously I had two queries, each one filtering for one of the loadpoints. However I don’t know how many loadpoints there are and the values of the loadpoint tags. Number of loadpoints and names can be arbitrary.
Is there a way to reference all resulting groups from one query and sum these up? I tried the ‘Reduce’ function, but obviously it didn’t create the desired result as it threads the resulting groups as separate tables.
- What Grafana version and what operating system are you using?
Grafana 11.5.1 on Linux