I have one Grafana dashboard with 2 queries that sum certain data from a postgres (timescale) db. Both queries are nearly identical, is it possible to combine these two queries into one as well as combining the sums?
Query one:
SELECT
$__timeGroup(time, '1m'),
SUM(value*2.119) as "Trane VAVs"
FROM
slipstream_volttron
WHERE
$__timeFilter("time") AND
(metric ~ 'slipstream_internal/slipstream_hq/.*/Discharge Air Flow$')
GROUP BY 1
ORDER BY 1
Query two:
SELECT
$__timeGroup(time, '1m'),
SUM(value) as "JCI VAVs"
FROM
slipstream_volttron
WHERE
$__timeFilter("time") AND
(metric ~ 'slipstream_internal/slipstream_hq/.*/SA-F$')
GROUP BY 1
ORDER BY 1
For example this screenshot is what it looks like hoping to combine these queries and SUMS where there would be only 1 line not two. One line of all of the data summed up.
