Query cumulative sum

    Given the following input table:

    _time_value
    00011
    00023
    00034
    00047

    The examples below use the example data variable.

    Calculate the running total of values

    expects an aggregate function that returns a single row for each time window. To use cumulativeSum() with aggregateWindow, use sum in , then calculate the running total of the aggregate values with cumulativeSum().

    1. |> aggregateWindow(every: 5m, fn: sum)

    Related articles