MEDIAN

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

Syntax 

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

Usage examples 

Example 1

Input

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

Formula

MEDIAN(my_action.message)

Output

2.5

Example 2

Input

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

Formula

MEDIAN(my_action.message, 2, 3)

Output

2

Sample Actions 

Transform
My Action
Transform
MEDIAN

Select an action to inspect

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

Transform
My Action
Transform
MEDIAN

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?