AggregateFunction (Measure Interface)
[!참고] 이 기능은 다음 버전의 Microsoft SQL Server에서 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 가능한 한 빨리 수정하십시오.
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.
Applies To:clsAggregationMeasure, clsCubeMeasure, clsPartitionMeasure
Data Type
Access
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.
[!참고] 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.
Examples
Reading the AggregateFunction Property of a Measure Object
Use the following code to read the value of the AggregateFunction property of a measure object:
'Assume an object (dsoAggMea) of ClassType clsAggregationMeasure exists
Dim AggType As DSO.AggregatesTypes
AggType = dsoAggMea.AggregateFunction
Select Case AggType
Case aggSum
' Insert code for aggregation summation.
Case aggCount
' Insert code for aggregation counts.
Case aggMin
' Insert code for aggregation min.
Case aggMax
' Insert code for aggregation max.
Case aggDistinctCount
' Insert for aggregation distinct counts.
End Select
참고 항목
참조
AggregatesTypes
Measure Interface
CustomRollupColumn (Level Interface)
CustomRollupExpression (Level Interface)