Aggregate method that returns the mean average for a group.

Syntax

<oRef>.agAverage(<codeblock>)

<oRef>

The Group object that defines the group you want to summarize.

<codeblock>

A codeblock or pointer to a function that returns the value to average.

Property of

Group

Description

Use agAverage( ) to calculate the mean average of the value returned by <codeblock> in the group. <codeblock> is usually an expression codeblock that returns the value property of a field in the Group object’s parent StreamSource object’s rowset.

If <codeblock> returns a null value, it is not considered in the average.

You may call agAverage( ) at any time. If necessary, the report engine will look ahead to calculate the result.