avg on field
This block is part of the array group and was last modified in core v10.4.28.
Field Selection Required
This block relies on a field that you select to perform its data actions. You must manually select the field you want to use in your flow using the field selector modal. To access the modal, click the white button on the block.
avg on field v10.4.28 returns the avarage number for the given field in the given array of objects.
- Array required
array
- Number
number
Sums the selected field over the object items (missing or non-numeric field values count as 0) and divides by the TOTAL array length, including non-object items and items lacking the field. Outputs 0 when the array is empty or the selected field is not of type number or date.
average |
mean |
A typical wiring for avg on field: the number out pin feeds cast to value.

Version history
Introduced in v10.4.28.
Back to
array Return to the main group to view all sub-groups Back to array Return to the group to view all blocks within this group
