# MV_MAX

The MV_MAX function converts a multivalued expression into a single valued column containing the maximum value.

## Syntax

`MV_MAX(field)`

### Parameters

#### field

Multivalue expression to be evaluated for its maximum value.

## Examples

Calculates the maximum value from a list of numbers in a single row.

```esql
ROW a=[3, 5, 1]
| EVAL max_a = MV_MAX(a)
```

Finds the maximum string value from a list by comparing their UTF-8 representations.

```esql
ROW a=["foo", "zoo", "bar"]
| EVAL max_a = MV_MAX(a)
```