# AgAverage

Aggregates loop iterations and calculates the average value for the specified element.

This function requires a loop expression. For more information, see [Loop expressions](https://help.qlik.com/talend/r/en-US/8.0/data-mapper-user-guide/loop-expressions).

## Related examples

* [Applying functions to collections of elements](https://help.qlik.com/talend/en-US/data-mapper-functions-reference-guide/8.0-R2024-04-and-earlier/applying-functions-to-collections-of-elements "Use the AgMaximum, AgMinimum and AgAverage functions with a SimpleLoop expression to collect multiple input elements and calculate the highest, lowest and average values for these elements.")

## Arguments

| Variable arguments | Add the map element to aggregate as arguments. |
| --- | --- |