The AggregateFunction property of the Measure interface contains an enumeration constant that corresponds to the type of aggregate function used to generate the precalculated value of the measure.
Access depends on the value of the ClassType property of the object.
Class type | Access |
---|---|
clsAggregationMeasure | R |
clsCubeMeasure | R/W* |
clsPartitionMeasure | R |
* Read-only for virtual cube measures and measures in fully-created linked cubes.
To create more sophisticated measures (for example, ratios or statistical functions), use the command object to create a calculated member. For more information, see clsCubeCommand and clsDatabaseCommand.
Note Because the DISTINCT COUNT aggregation function does not support custom aggregations, the use of this aggregation function in combination with the CustomRollupExression and CustomRollupColumn properties is not supported. If a cube uses the DISTINCT COUNT aggregation function and any of the dimensions in that cube use either the CustomRollupExpression property or the CustomRollupColumn property, including data mining dimensions, the cube is invalid. Processing such a cube raises a validation error.