# AVG

The AVG function calculates the average value of a numeric field or expression.

## Syntax

`AVG(number)`

### Parameters

#### number

Expression that outputs the values to be averaged.

## Examples

Calculates the average height of all employees.

```esql
FROM employees
| STATS AVG(height)
```

Calculates the average salary change by first averaging multiple salary change values per employee using `MV_AVG`, then rounding the overall average to 10 decimal places.

```esql
FROM employees
| STATS avg_salary_change = ROUND(AVG(MV_AVG(salary_change)), 10)
```