max() function
The max()
function selects record with the highest _value
from the input table.
max()
is a selector function.
max(column: "_value")
Empty tables
max()
drops empty tables.
Parameters
column
The column to use to calculate the maximum value.
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 max()
transforms data.
import "sampledata"
sampledata.int()
|> max()
Was this page helpful?
Thank you for your feedback!
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, use the following resources:
InfluxDB Cloud customers can contact InfluxData Support.