Documentation

min() function

Flux 0.7.0+

The min() function selects record with the lowest _value from the input table. min() is a selector function.

min(column: "_value")

Empty tables

min() drops empty tables.

Parameters

column

The column to use to calculate the minimum 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 min() transforms data.

import "sampledata"

sampledata.int()
  |> min()

View input and output


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.