I have some measurement data in my influxdb database which I can query with:
select * from E_real_con
name: E_real_con
time value
---- -----
1537920001044785525 | 57160036.00
1538006401069651036 | 57227208.00
1538092800108297103 | 57294112.00
1538179200697333731 | 57366108.00
However, "value" is a cumulative value and I would like to get the delta/difference between two consecutive values.
I tried the following:
SELECT difference(last(value)) FROM E_real_con WHERE time >= now() - 7d GROUP BY time(1d) fill(null)
However, I get the following error message:
ERR: unsupported difference iterator type: *query.stringInterruptIterator
I would be happy to get some hints and feedback how to solve my issue.
I am using influxdb 1.6.1
Thanks a lot! Christoph