sum() function
The sum()
function computes the sum of non-null records in a specified column.
sum()
is an aggregate function.
sum(column: "_value")
Parameters
column
The column on which to operate.
Default is "_value"
.
tables
Input data.
Default is piped-forward data (<-
).
Examples
The following example uses data provided by the sampledata
package
to show how sum()
transforms data.
import "sampledata"
sampledata.int()
|> sum()
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.