Hi, I am a newbie and I started using Grafana by myself, so sorry if this question sounds stupid.
I am trying to achieve a stat dashboard that shows the performance of a heat pump, I want to show three numbers
-the energy consumption
-the electricity consumption
-the ratio between the two (energy/electricity)
I am using influxdb and influxql. the energy consumption and electricity are calculated measures (there is a counter that increase over time and the difference between two periods is the consumption). the query that I am using are the following:
The first two numbers are the sum of the consumption of the last two days, I used a calculation “Total”. The ratio is simply calculated as $A/$B and the result is infinite.
it looks like that the calculation adds up the single points ratio, when the $B query is zero it goes to infinite. what I want to achieve instead is having a ration that works like the following formula sum($A)/sum($B). Is it feasible?