# MV_AVG

The MV_AVG function calculates the average of all values in a multivalued field and returns a single value.

## Syntax

`MV_AVG(number)`

### Parameters

#### number

A multivalued expression.

## Examples

```esql
ROW a=[3, 5, 1, 6]
| EVAL avg_a = MV_AVG(a)
```

**Retrieving the average value from a multivalued field**
```esql
FROM bag_of_numbers
| EVAL min = MV_AVG(numbers)
```
