Aggregate Function
|
Description
|
||
---|---|---|---|
AvgField( FieldName )
|
Returns the average of all values stored in field.
|
||
MaxField( FieldName )
|
Returns the maximum value stored in field.
|
||
MinField( FieldName )
|
Returns the minimum value stored in field.
|
||
SumField( FieldName )
|
Returns the sum of all values stored in field.
|
||
|
|||
AvgTreeRollup( FieldName, UseSpecifiedValue)
|
Returns the average value of all values stored in field for all child records.
|
||
MaxTreeRollup( FieldName, UseSpecifiedValue)
|
Returns the maximum value stored in field for all child records.
|
||
MinTreeRollup( FieldName, UseSpecifiedValue)
|
Returns the minimum value stored in field for all child records.
|
||
SumTreeRollup( FieldName, UseSpecifiedValue)
|
Returns the sum of all values stored in field for all child records.
|
Example
|
Error Description
|
---|---|
MINFIELD(Severity)
|
Invalid case
|
MinField (Severity)
|
Invalid space after function name
|
minfield (severity)
|
Invalid case and space after function name
|
|
Because aggregate functions operate on multiple records, the execution time of automatic calculations increases as the number of records in your database increases. If you have many records, turning on automatic calculations for aggregate functions may make data entry time unacceptable. If this is the case, you should turn off automatic calculations for these functions.
|