When you add a data source, row source, dimension, or cube in the Model, maps are created. Available mappings include cube-to-cube, row source-to-cube, data source-to-row source, data source-to-dimension, and allocation maps.
To edit the mapping, click the line between objects in the Object Details Graph tab and select Edit Mapping.
When you edit a map, a green check mark appears beside the object in the Object Browser.
To create a cube-to-cube map:
In the Model, go to the Object Details Graph tab, click the line between the cubes, and select Edit Mapping.
A Cube Mapping Wizard is displayed, where you can edit information about the mapping.
Define the Cube Scope for the source and target cubes by selecting a scope type and entering a value for each dimension.
The cube scope defines which members participate in the data flow from the source cube to the target cube.
Review or edit Dimension Map information for the source and target cubes.
To view detailed information for a dimension, click the dimension name. The information is displayed under Dimension Map Details. To change dimension map information, click Edit.
Namespace—Name to uniquely identify dimension members
When creating a dimension map, Integrated Operational Planning passes the name of the dimension and the value of the namespace to the mapping function to evaluate the target members.
In the following example, when Integrated Operational Planning evaluates the mapping function, it uses the “ProductLine” argument as well as the namespace and dimension values to determine the target dimension members.
The namespace can be the same as the dimension name, but it need not be. See Dimension Namespaces for detailed information on namespaces.
Transformation—An optional function applied to the result of the mapping function
Integrated Operational Planning first maps source members to target members using the mapping function (oneToOneMap(ProductLine) in the previous example). If the target members are unavailable after mapping is complete, the transformation information is used. Transformation information is applied in the context of the target dimension.
See Member Functions.
A Row Source-to-Cube map defines how row source columns are mapped to the fully qualified names of members in different cube dimensions. You can load data from each row source into cube cells.
In general, a single mapping exists between a row source and a cube; however, you can change the mapping by measure.
For example, assume that one measure, shipped units, maps the “shipped_date” column of the row source to the cube, but all the other measures use “order_date”. In this example, you would use normal mapping overall, and “custom” mapping for specific measures.
To create a row source-to-cube map:
In the Model, go to the Object Details Graph tab, click the line between a row source and a cube, and select Edit Mapping.
In the Row Source Mapping Wizard, review Source and Target information.
Row Source—The source row source for which you are editing the mapping
Custom Mapping—Whether to use custom mapping for each specific measure. Select True to use a Java class for the mapping; otherwise, select False.
Partial Map—Select True if all of the cube dimensions are not mapped to row source key columns; otherwise, select False.
Note: | If the row source is time-varying, and all the dimensions except time are mapped, select False. |
Summarized Value—Select True to aggregate multiple values from a row source to single value in a cube. Select False for one-to-one mapping.
Define Default Map information.
For each cube dimension in the measure:
Optional: Select Fixed Member to add a member name.
If no attributes are assigned to the cube dimension, none is the only option for Attribute Name. You assign attributes to dimensions in step 5 in the Dimension Wizard.
See Creating a Dimension.
Enter a namespace, or select Use Row Source Column as Namespace and select a row source column from the menu.
If you defined custom mapping as true on the Source and Target wizard page, enter the following additional information:
Custom Mapper Class—Class to generate the mapping from row source row to cube cell
Key Generator Class—Class to generate the row source keys given a cube cell
If you defined custom mapping as false on the Source and Target wizard page, to define measure-specific maps, click Add Measure Map and select a measure.
If you defined custom mapping as true on the Source and Target wizard page, you cannot define measure-specific maps.
A data source-to-row source map is also known as a stagemap. See stagemaps under Data Flow and Mapping. |
To create a data source-to-row source map:
From the Model tab, select the Object Details Graph tab, then click the line between a data source and a row source, and then select Edit Mapping.
In the Data Source Mapping Wizard, review Source and Target information.
Name—Name used to identify the map (Assigned by Integrated Operational Planning)
Data Source—Source data source for which you are editing the mapping
Row Source—Target row source for which you are editing the mapping
Groups—Used to combine the related set of row sources. Integrated Operational Planning defines all the stagemaps with a group name of Bootstrap-RowSource-Stagemaps. Using this model group, you can create without entering commands for each stagemap.
Click Create, select a filter type, and then enter filter details:
Filter Value—Value for the filter. To include columns in the filter value, click Add and select a column.
Non-matching are Errors—Whether to log data values that do not match filter values in the error log file. Select True or False. (The default is False; data values that do not match filter values are not entered in the log file.)
Match—Select True to allow only matching records in the filter. Select False to allow only nonmatching records in the filter.
Non-matching are Errors—Whether to log data values that do not match with filter values in the error log file. Select True or False. (The default is False; data values that do not match filter values are not entered in the log file.)
Filter On—Select Namespace or Hierarchy. If you select Namespace, enter a value. (If you leave the Namespace value blank, the default hierarchy is used.) If you select Hierarchy, select a hierarchy and a hierarchy level.
Allow Members—Select True to include only the records that exactly match the dimension member names. Select False to include only the records that do not match dimension member names.
Non-matching are Errors—Whether to log data values that do not match filter values in the error log file. Select True or False. (The default is False; data values that do not match filter values are not entered in the log file.)
Filter Value—Value for the filter. To include columns in the filter value, click Add and select a column.
Distinct—Whether data should have distinct values across the data set. Select True or False.
Non-matching are Errors—Whether to log data values that do not match filter values in the error log file. Select True or False. (The default is False; data values that do not match filter values are not entered in the log file.)
Define Custom Processing information.
A data source-to-dimension map is also known as a stagemap. See stagemaps under Data Flow and Mapping. |
To create data source-to-dimension maps:
From the Model tab, select the Object Details Graph tab, then click the line between a data source and a dimension, and then select Edit Mapping.
In the Data Source Mapping Wizard, review Source and Target information.
Name—Name used to identify the map (Assigned by Integrated Operational Planning.)
Data Source—The source data source for which you are editing the mapping.
Dimension—The target dimension for which you are editing the mapping
Groups—Used to combine the related set of row sources. Integrated Operational Planning defines all the stagemaps with a group name of Bootstrap-Row Source-Stagemaps. Using this model group, you can create without entering commands for each stagemap.
The hierarchies defined as part of dimensions are displayed here. Use hierarchy level maps to:
Define how to map the data source to members in different levels of the hierarchy.
Define the mapping for the attributes defined in the dimension.
To view details about a hierarchy level, click a hierarchy and review its details under Hierarchy-Level Map Details.
To edit a hierarchy level, select a hierarchy, click Edit, and define mapping information by either selecting a column or entering value for each of the following:
Parent—Parent level in the hierarchy
As an example of entering a value, assume that you have a parent level of family_name. Assume further that you want to combine two columns (family_name and capacity) and change the parent name. In this case, you would enter ${family_name}#${capacity} as the value.
Namespace—Name to uniquely identify dimension members
See Dimension Namespaces.
Name Column—Data source column that indicates the member name or an expression that combines data source columns
Display Name Column—Data source column that indicates the display name or an expression that combines data source columns
Description Column—Data source column that indicates the description or an expression that combines data source columns
realName Attribute—Attributes defined in the dimension
Click Create, select a filter type, and enter filter details:
Hierarchy Level—Hierarchy level on which to filter the information
Filter Value—Value for the filter. To include columns in the filter value, click Add and select a column.
Non-matching are Errors—Whether to log data values that do not match filter values in the error log file. Select True or False. (The default is False, data values that do not match filter values are not entered in the log file.)
Hierarchy Level—Hierarchy level on which to filter the information
Match—Select True to allow only matching records in the filter. Select False to allow only non-matching records in the filter.
Non-matching are Errors—Whether to log data values that do not match with filter values in the error log file. Select True or False. (The default is False, data values that do not match filter values are not entered in the log file.)
Hierarchy Level—Hierarchy level on which to filter the information
Filter On—Select Namespace or Hierarchy. If you select Namespace, enter a value. (If you leave the Namespace value blank, the default hierarchy is used.) If you select Hierarchy, select a hierarchy and a hierarchy level.
Allow Members—Select True to include only the records that exactly match the dimension member names. Select False to include only the records that do not match dimension member names.
Non-matching are Errors—Whether to log data values that do not match with filter values in the error log file. Select True or False. (The default is False, data values that do not match filter values are not entered in the log file.)
Hierarchy Level—Hierarchy level on which to filter information
Filter Value—Value for the filter. To include columns in the filter value, click Add and select a column.
Distinct—Whether data should have distinct values across the data set. Select True or False.
Non-matching are Errors—Whether to log data values that do not match filter values in the error log file. Select True or False. (The default is False, data values that do not match filter values are not entered in the log file.)
Define Custom Processing information.
To create and edit allocation maps:
On the Object Browser View menu, select Cubes and select a cube, and then click Actions and select Edit.
To create an allocation map, click Create. To edit a map, click an allocation map and click Edit.
In the Source Scope and in the Target Scope, for each dimension, enter or review:
Scope Type—For example: not mapped, all, level, levels, nonLeaves
Value—For example, if you selected levels for the Scope Type, then you could select Summary, Plant, Department or Critical Resource.
The functions for the Source Scope Members and Target Scope Members are shown on the Cube Wizard, under Allocation map details:
Source Scope Members example:
[level(ProductLine.ProductLine."Product Line")] [levels(Resource.Resource.Summary, Resource.Resource.Plant, Resource.Resource.Department)]
Target Scope Members example:
[level(ProductLine.ProductLine."Product Line")] [levels(Resource.Resource.Plant, Resource.Resource.Department, Resource.Resource."Critical Resource")]
Enter or review Dimension Map information for the source and target dimension.
To view detailed information for a dimension, select the dimension name. Information is displayed under Dimension Map Details. To change dimension map information, click Edit.
Namespace—Name to uniquely identify dimension members
See Dimension Namespaces.
Mapping Type—Select Simple or Fixed Member
For Simple mappings, define the type of mapping and the dimension to which to map.
See Mapping Functions.