Greetings,
I’ve got my Iotawatt units feeding measurements into InfluxDBv2, but I haven’t quite wrapped my head around the basics of this Flux query language yet.
I have two CTs named I1_DTED1_L1 and I2_DTED1_L2. I would like to plot each of these CT Watt measurements, as well as the sum of both CT Wattages.
I can plot the two measurements with:
from(bucket: “iotawatt”)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r[“ct”] == “I1_DTED1_L1” or r[“ct”] == “I2_DTED1_L2”)
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|> yield(name: “mean”)
But I have no idea how to compute the sum of these two values and plot them as a 3rd plot on the chart even after doing some reading. Can anyone point me in the right direction here?
Thanks in advance!