# MV_MAX

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

## Syntax

`MV_MAX(field)`

### Parameters

#### field

A multivalue expression.

## Examples

The following example demonstrates the use of MV_MAX function:

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

**Retrieving the max value from a multivalued field**
```esql
FROM bag_of_numbers
| EVAL max = MV_MAX(numbers)
```
