IMDCalculationCalculateArgs.DateEnd

Syntax

DateEnd: DateTime;

Description

The DateEnd property determines a date of calculation period end.

Comments

For calculation for the specified time period, the slice must be built on a fixed calendar dimension in data sources of multidimensional calculation on database server.

Example

Executing the example requires that the repository contains multidimensional calculation on DB server with the MDCalc_1 identifier. Calendar dimensions of data sources are fixed.

Sub UserProc;
Var
    MB: IMetabase;
    MDInst: IMDCalculationInstance;
    Args: IMDCalculationCalculateArgs;
Begin
    MB := MetabaseClass.Active;
    MDInst := MB.ItemById(
"MDCalc_1").Open(NullAs IMDCalculationInstance;
    Args := MDInst.CreateCalculateArgs;
    Args.CleanType := MDCalculateArgsCleanType.All;
    Args.DateBegin := DateTime.ComposeDay(
20050101);
    Args.DateEnd := DateTime.ComposeDay(
20060101);
    MDInst.Calculate(Args);
End Sub UserProc;

After executing the example multidimensional calculation is executed on DB server. The data consumer is cleared before calculation. Calculation is executed within the specified period.

See also:

IMDCalculationCalculateArgs