CenterView Help
average
Function: average()
Returns the average of a set of numbers.
Syntax
average(list)
Examples
average([10, 2, 3, 3.3, 4, 5.6])
Returns the average of the numbers in above i.e. (10 + 2 + 3 + 3.3 + 4 + 5.6) / 6 = 4/65
average(in.invoiceAmount)
Returns the average of all invoiceAmount that are returned by pipe in. E.g. if this this expression were on an Aggregating Stream the average would be over all invoices which matched the Pipe Grouping criteria.
See Also
Please let us know if we could improve this page feedback@phixflow.com