Documentation

max() function

Flux 0.7.0+

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()

View input and output


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.