SetAggregateMapping method: CubeCollectionDefn class

Syntax

SetAggregateMapping(PartName, IsCube, AggregateFieldName)

Description

Use the SetAggregateMapping method to specify an aggregate field for the part specified by PartName.

You can map a field to only one data cube or dimension within one cube collection.

Parameters

Parameter Description

PartName

Specify the name of the part for which you want to add an aggregate field.

IsCube

Specify whether the part is a cube. This parameter takes a Boolean value, true if the part is a cube, false otherwise.

AggregateFieldName

Specify the name of the field to be used to hold the aggregate value.

Returns

A string containing the name of the field that contains the aggregate value.