ICalculatedCubeDimension.TimeAttribute

Syntax

TimeAttribute: IDimAttribute;

Description

The TimeAttribute property determines the dimension attribute that controls the choice of the formula actual period. The attribute to be set must have the Date type. The property is relevant if the IsTime property is set to True.

Example

Executing the example requires a calculated cube with the Calc_Cube identifier. The cube contains a calendar dimension with the CALENDAR identifier.

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Cube: ICalculatedCube;

Dim: ICalculatedCubeDimension;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemById("Calc_Cube").Edit;

Cube := MObj As ICalculatedCube;

Dim := Cube.Dimensions.FindById("CALENDAR");

Dim.IsTime := True;

Dim.TimeAttribute := Dim.Dimension.Attributes.Item(1);

MObj.Save;

End Sub Main;

After executing the example dimension with the CALENDAR identifier is used in the calculated cube for controlling the choice of the formula actual period.

See also:

ICalculatedCubeDimension