# Aggregation Functions

> Numeric aggregation functions available in JSONata expressions throughout the Fuuz platform. $sum() Signature: $sum(array) Returns the arithmetic sum of…

Source: https://www.fuuz.com/help/aggrigation-functions
Last updated: 2026-06-15

How-To Guides · Expressions and scripting


Last updated June 15, 2026, 9:03 PM UTC

Numeric aggregation functions available in JSONata expressions throughout the Fuuz platform.

## `$sum()`

**Signature:** `$sum(array)`

Returns the arithmetic sum of an array of numbers. It is an error if the input array contains an item which isn't a number.

**Example**

- `$sum([5,1,3,7,4])` => `20`

## `$max()`

**Signature:** `$max(array)`

Returns the maximum number in an array of numbers. It is an error if the input array contains an item which isn't a number.

**Example**

- `$max([5,1,3,7,4])` => `7`

## `$min()`

**Signature:** `$min(array)`

Returns the minimum number in an array of numbers. It is an error if the input array contains an item which isn't a number.

**Example**

- `$min([5,1,3,7,4])` => `1`

## `$average()`

**Signature:** `$average(array)`

Returns the mean value of an array of numbers. It is an error if the input array contains an item which isn't a number.

**Example**

- `$average([5,1,3,7,4])` => `4`

## See Also

- [Array Functions](https://www.fuuz.com/help/array-functions)
- [Boolean Functions](https://www.fuuz.com/help/boolean-functions)
- [Comparison Operators](https://www.fuuz.com/help/comparison-operators)
- [Custom Fuuz Only JSONata Library](https://www.fuuz.com/help/custom-fuuz-only-jsonata-library)
- [Jsonata Tutorial](https://www.fuuz.com/help/jsonata-tutorial)

### Need more help?

Ask the Fuuz community, or open a ticket with Fuuz support.

[Ask the community](https://www.fuuz.com/community) [Open a ticket](https://support.fuuz.com/portal/en/newticket)

On this page

[$sum()](#sum)

[$max()](#max)

[$min()](#min)

[$average()](#average)

[See Also](#see-also)
