IMDCalculationCalculateArgs.DateBegin

Syntax

DateBegin: DateTime;

Description

The DateBegin property determines a date of calculation period start.

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 DB 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 Main;
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 Main;

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