1. Docs
  2. Formulas
  3. Functions

AVERAGE

Returns the average (mean) numeric value. Can either be called with a single argument which must be an array or multiple numeric arguments.

Categories: Numbers

Syntax

AVERAGE(array) or AVERAGE(number1, number2, ...)

Examples

Example 1

Input

1
{
2
"my_action": {
3
"message": [
4
1,
5
2
6
]
7
}
8
}

Formula

AVERAGE(my_action.message)

Output

1.5

Example 2

Input

1
{
2
"my_action": {
3
"message": 1
4
}
5
}

Formula

AVERAGE(my_action.message, 2, 3)

Output

2

Sample actions

Event Transform
My Action
Event Transform
AVERAGE

Select an action to inspect

You can also click "Copy actions" and paste them in your Tines story to see how they work.

Event Transform
My Action
Event Transform
AVERAGE

Select an action to inspect

You can also click "Copy actions" and paste them in your Tines story to see how they work.

Was this helpful?