CalculateIdentOnFact: Boolean;
CalculateIdentOnFact: boolean;
The CalculateIdentOnFact property determines whether to unload data on calculating on the Fact scenario.
The property is taken into account for the model included in the metamodel calculation chain if:
Input and output variables differ in the equation.
The metamodel is calculated by the forecasting problem.
Available values of CalculateIdentOnFact:
True. On calculating metamodel the resulting data is unloaded to the Fact scenario. The unloaded data depends on the model type:
Non-forecast models (various types of smoothing, filters and so on). For the sample period a component selected by the user or a modeling series (depending on a model) is unloaded. Data is not loaded for the forecasting period.
Forecasting models (ARIMA, trend, exponential smoothing, linear regression, and so on). The source series copied from the source variable is unloaded for the sample period. For the forecasting period the forecasting data by the Fact scenario is unloaded if it is included in the calculation.
False. Data on the Fact scenario remains unchanged.
Executing the example requires a modeling container with the MS identifier containing a metamodel with the METAMODEL identifier.
Add links to the Metabase, Ms system assemblies.
Sub UserProc;
Var
mb: IMetabase;
MetaModelObj: IMetabaseObject;
MetaModel: IMsMetaModel;
Begin
mb := MetabaseClass.Active;
// Get metamodel
MetaModelObj := mb.ItemByIdNamespace("METAMODEL", mb.GetObjectKeyById("MS")).Edit;
MetaModel := MetaModelObj As IMsMetaModel;
//Specify that the data on calculation should be unloaded for the Fact scenario
MetaModel.CalculateIdentOnFact := True;
// Save changes
MetaModelObj.Save;
End Sub UserProc;
After executing the example on calculating the METAMODEL metamodel the data is unloaded for the Fact scenario.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Public Shared Sub Main(Params: StartParams);
Var
mb: IMetabase;
MetaModelObj: IMetabaseObject;
MetaModel: IMsMetaModel;
Begin
mb := Params.Metabase;
// Get metamodel
MetaModelObj := mb.ItemByIdNamespace["METAMODEL", mb.GetObjectKeyById("MS")].Edit();
MetaModel := MetaModelObj As IMsMetaModel;
//Specify that the data on calculation should be unloaded for the Fact scenario
MetaModel.CalculateIdentOnFact := True;
// Save changes
MetaModelObj.Save();
End Sub
See also: