Altova MapForce 2027 Professional Edition

Returns the average value of all values within the input sequence. The average of an empty set is an empty set.

mf-func-avg

 

Languages

Built-in, C++, C#, Java, XQuery, XSLT 2.0, XSLT 3.0.

 

Parameters

Argument

Description

parent-context

Optional argument. Supplies the parent context. See also Example: Changing the Parent Context.

 

Parent context is the context inherited from a parent node. It determines what source data and intermediate results are available to descendant nodes. Some data-processing components, including core aggregation functions, join components, and variables, provide a parent-context parameter that allows you to influence the inherited context and consequently change the output.

values

This argument must be connected to a source item which supplies the actual data. Note that the supplied argument value must be numeric.

 

 

Example

See Example: Grouping Records by Key.

© 2020-2026 Altova GmbH