Aggregate method that returns the variance of the values in a group.

Syntax

<oRef>.agVariance(<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 you want to sample.

Property of

Group

Description

Use agVariance( ) to calculate the variance 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 rowset of the Group object’s parent StreamSource object.

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

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