# MV_SUM

The MV_SUM function converts a multivalued field into a single valued field containing the sum of all its values.

## Syntax

`MV_SUM(number)`

### Parameters

#### number

A multivalue expression containing the values to be summed.

## Examples

Calculates the sum of all values in the multivalued field `a` and stores the result in a new field `sum_a`.

```esql
ROW a=[3, 5, 6]
| EVAL sum_a = MV_SUM(a)
```