Loading relational data and OLAP cube data incrementally
- Select d/EPM Administration > Dashboards > Data Integrations > Relational Modeling.
- In the Target Connection field, select Staging.
-
To create a copy of a fact table, click New
Table and specify this information:
- Name
- Specify the same name as the original table name and add a suffix _temp to the name.
- Description
- Optionally, specify a description of the table.
- Click Next.
-
Click Add columns from query and
specify this information:
- Query Name
- Specify IncrementalLoad.
- Application
- Select the application to which to load data.
- Source Connection
- Select Staging.
- Query Description
- Optionally, specify a description of the query.
- Query
- Specify the
select * from Table
query to extract data from the table.
- Click Add.
- In the table, verify data types for each column and, if required, update those types in the Type column.
- Select the Primary Key check box for the ID column and click Finish.
- Select the original table from the list and click the Load Queries tab.
- Select the IncrementalLoad query and copy the query from Query Editor.
- From the list, select the table with the _temp suffix and click the Load Queries tab.
- Select the IncrementalLoad query, then select Data Lake in the Source Connection field, and paste the copied query into Query Editor.
-
In the query, do these changes:
- In the SELECT condition, add 0 AS Value.
- In the FROM condition, use the
infor.IncludeDeleted('Table name')
function. - Add this condition:
AND ToDelete = 1
. 1 is an example value. You must specify a value that you have defined to indicate that a record is deleted.
- Click Save.
- Click Load and then Load Data.
- Select d/EPM Administration > Dashboards > OLAP > Edit Database and select the appropriate cube.
- Click the Mappings tab and then New Mapping.
-
On the Source tab, specify this
information:
- Mapping Name
- Specify the mapping name with the _IncrementalLoad suffix.
- Mapping Unique Name
- Specify the mapping unique name.
- Comment
- Optionally, specify a comment about the facts mapping definition.
- Data Connection
- Select Staging.
- Fact Table Name
- Select the fact table with the _temp suffix.
-
Click the Column Mapping tab and
specify this information:
- Select Value Column Mode
- The Single option is selected by default.
- Value Column Name
- Select Value.
- Source Column Name
- In the table, select appropriate names of source columns for each dimension.
- Clear Values
- This function is enabled by default. Disable this function.
- Writing Mode
- Select Overwrite.
-
Click Save.
With this mapping, new records are added and data and deleted records with 0 value are overwritten. This ensures that no value is left out.
Related topics