다음을 통해 공유


Grouping (Level Interface)

[!참고]

  이 기능은 다음 버전의 Microsoft SQL Server에서 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 가능한 한 빨리 수정하십시오.

The Grouping property of the Level interface determines whether members in the level are used individually or are part of groups.

Applies To:clsAggregationLevel, clsCubeLevel, clsDatabaseLevel, clsPartitionLevel

Data Type

GroupingValues

Access

Access depends on the value of the ClassType property of the object.

Class type

Access

clsDatabaseLevel

R/W

clsCubeLevel

R

clsPartitionLevel

R

clsAggregationLevel

R

주의

You can group level members to segment and organize the data contained in a cube. For example, a department store chain may want to use a cube to monitor customer purchasing trends. Querying for data on the customers dimension without grouping might return long lists of individual purchase events that are impractical to view or analyze. Grouping level members based on gender, age group, credit history, or payment method returns more manageable and meaningful data. When such natural groupings are not available, this property can still be used to artificially impose organization on the data.

Member groups allow you to circumvent the maximum limit of 64,000 members per level. When members are grouped, queries return smaller segments of data. Each level can contain 64,000 groups, and each group can contain 64,000 members.

This feature provides support for very large levels. A level can be added (visible or invisible) that provides grouping for a large level. If you create a duplicate of a large level and set the Grouping property to groupingAutomatic, you can ignore the 64,000 member limit.

When this property is set to groupingAutomatic, the Analysis server automatically creates and names the member groups each time the dimension is processed. The number and names of the groups can change as the data in the cube changes.

If Grouping is set to groupingAutomatic, Decision Support Objects (DSO) changes the following properties for the level:

  • The AreMemberNamesUnique property is read-only and set to False.

  • The AreMemberKeysUnique property is read-only and set to False.

  • The Ordering property is read-only and set to orderName.

You cannot set Grouping to groupingAutomatic for a level when any of the following conditions occur:

  • The IsChanging property for the parent dimension is False.

  • The level is the first or last within the dimension.

  • The Grouping property of an adjacent level in the dimension is set to groupingAutomatic.

  • The StorageMode property for the parent dimension is storeasROLAP. Member groups are not supported for ROLAP dimensions.