6.3.1 Creating Variables
Prerequisites:
- Ensure that you configure the dimensions and connect other OFSAA application with STSA.
- Ensure that the preseeded glossary terms or custom glossary terms are mapped to the physical tables and their columns.
- To configure variable metadata, populate the corresponding values in the EST_VAR_DEF_LOGICAL_MAP table.
- V_WORKSPACE_ID - this represents the workspace id or information domain (infodom) name.
- V_SERVICE_ID - this represents the service id.
- V_TENANT_ID - this represents the tenant id.
- V_VAR_TYPE - this represents the variable type. The supported values are:
Table 6-1 Codes for different variables
Code Variable Type Description N Numeric Supports numeric values. C Categorical Supports non-numeric values. Note:
When populating this value, enter only the code representing the variable type. - V_VAR_SUB_TYPE - this represents the variable sub-type. The supported variable sub-types are:
Table 6-2 Codes for Numeric variable sub-types
Code Variable Sub-Type MS Matrix PD PD Term Structure LGD LGD Term Structure CCF CCF Term Structure C Exchange Rate O Other Dependent Granular Variable M Micro/Macro Variable Table 6-3 Codes for Categorical variable sub-types
Code Variable Sub-Type N Nominal O Ordinal - V_VAR_METADATA_KEY - this represents the physical metadata key used internally.
- V_VAR_METADATA_LOGICAL_REF - this represents the glossary term name.
- V_LINKED_LOGICAL_REF_CONDITION - this represents the join condition, if multiple tables are involved. This can contain the below place holders:
- Dynamic value - any dynamic value can be populated using braces, {metadata_key}. At runtime, this placeholder value is taken from the metadata key Id.
- Reserved words - $MISDATE is a dynamic placeholder where the value is updated during scenario execution.
- F_DISPLAY - this represents if the filed name should be displayed on the UI.
- If the value is set to Yes, then the field value is fetched from the database and is displayed on the UI.
- If the value is set to No, then the field value is not displayed on the UI.
- F_PRIMARY_KEY - this represents the primary key.
Note:
Ensure that there is at least one primary key for a given variable sub-type. Otherwise, existing IDs will not be fetched. - V_DEFAULT_VALUE - this represents the default value, if any. This column can contain below place holders.
- Static value - any static value can be added.
- Dynamic value - any dynamic value can be populated using braces, {metadata_key}. At runtime, this placeholder value is taken from the metadata key Id.
- Reserved words - $MISDATE is a dynamic placeholder where the value is updated during scenario execution.
- V_VALUE_TRANSFORM_FUNCTION - this represents the transformation of a value to a different format. Use this field to configure aggregate function or any other function which can be applied to this column to transform the data from one format to another.
- Functions - it can contain any sql function. If it is an aggregate function, then mentioning the condition in V_LINKED_LOGICAL_REF_CONDITION field is mandatory to fetch a unique value.
- Dynamic value - any dynamic value can be populated using braces, {metadata_key}. At runtime, this placeholder value is taken from the metadata key Id.
- Reserved words - $MISDATE is a dynamic placeholder where the value is updated during scenario execution.
- F_FIC_MIS_DATE - this represents the FIC MIS date.
Note:
Ensure that there is at least one FIC MIS date column. - F_EXCLUDE - this represents if the column value should be considered for execution.
- If the value is set to Yes, then this field is ignored during execution. However, this field is required by other metadata.
- If the value is set to No, then the value in this field is displayed on UI and used in dynamic placeholder.
- The matrix, term structure, currency and ordinal variable types are mapped to the EST_DIM_TYPE_HIERARCHY_TABLE_MAP table. Hence, ensure that you map the physical table and columns to the following variable types in the EST_DIM_TYPE_HIERARCHY_TABLE_MAP table.
- Map the physical table column names to the glossary terms mentioned in this EST_VAR_DEF_LOGICAL_MAP table since all the values that are prepopulated for the variable definition are fetched from this table.
To create a variable:
Note:
For this release, adding dimensions is not supported for matrix, currency, and term structure sub type variables.