min() function

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

*Function type: Selector
**
Output data type:* Record

  1. min(column: "_value")

Empty tables

min() drops empty tables.

Parameters

column

The column to use to calculate the minimum value. Default is "_value".

*Data type: String*

Examples

  1. from(bucket:"example-bucket")
  2. |> range(start:-1h)
  3. |> filter(fn: (r) =>
  4. r._measurement == "cpu" and
  5. r._field == "usage_system"
  6. )
  7. |> min()

Related articles