increase() function calculates the cumulative sum of non-negative differences
between subsequent values.
A main use case is tracking changes in counter values which may wrap over time
when they hit a threshold or are reset.
In the case of a wrap/reset, we can assume that the absolute delta between two
points will be at least their non-negative difference.
Output data type: Float
Columns to use in the operation.
Default is piped-forward data (
For each input table with
derivative() outputs a table with
n - 1 rows.
The following example uses data provided by the
to show how
increase() transforms data.
import "sampledata" sampledata.int() |> increase()
View input and output
increase = (tables=<-, column="_value") => tables |> difference(nonNegative: true, column:column) |> cumulativeSum()
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, the following resources are available:
InfluxDB Cloud customers can contact InfluxData Support.