Flux built-in aggregate transformations
Flux’s built-in aggregate transformations take values from an input table and aggregate them in some way. Output tables contain a single row with the aggregated value.
Aggregate operations output a table for every input table they receive. You must provide a column to aggregate. Any output table will have the following properties:
- It always contains a single record.
- It will have the same group key as the input table.
- It will contain a column for the provided aggregate column.
The column label will be the same as the input table.
The type of the column depends on the specific aggregate operation.
The value of the column will be
nullif the input table is empty or the input column has only
- It will not have a
aggregateWindow helper function
does most of the work needed when aggregating data.
It windows and aggregates the data, then combines windowed tables into a single output table.
The following aggregate functions are available:
The following functions are both aggregates and selectors.
n values after performing an aggregate operation.
They are categorized as selector functions in this documentation:
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support or submit feedback, the following resources are available:
- Post in the InfluxData Community.
- Submit documentation issues to the InfluxDB 2.0 documentation repository.
- Submit InfluxDB issues to the InfluxDB repository.
For our InfluxDB Cloud customers, InfluxData Support is also available.