DateEnd: DateTime;
The DateEnd property determines a date of calculation period end.
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.
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(Null) As IMDCalculationInstance;
Args := MDInst.CreateCalculateArgs;
Args.CleanType := MDCalculateArgsCleanType.All;
Args.DateBegin := DateTime.ComposeDay(2005, 01, 01);
Args.DateEnd := DateTime.ComposeDay(2006, 01, 01);
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: