Loading relational data and OLAP cube data incrementally
- In EPM Administration, select 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. For example,SELECT * FROM ['CA_FactCoffeeAdventure']. 
 - 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. For example, this query:
           
SELECT [RecordID] ,[ID] ,[Calendar] ,[Adventurer] ,[Coffee] ,[Measure] ,[Value] ,[ModifyDate] ,CURRENT_TIMESTAMP AS dEPMLastModified ,'Actuals' AS Scenario FROM ['CA_FactCoffeeAdventure'] WHERE LastModified > '<<LAST_IMPORT>>' - 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, make 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 as an indication that a record is deleted. 
For example:
SELECT [RecordID] ,[ID] ,[Calendar] ,[Adventurer] ,[Coffee] ,[Measure] ,0 AS [Value] ,[ModifyDate] ,CURRENT_TIMESTAMP AS dEPMLastModified ,'Actuals' AS Scenario FROM Infor.IncludeDeleted['CA_FactCoffeeAdventure'] WHERE LastModified > '<<LAST_IMPORT>>' AND ToDelete = 1 - Click Save.
 - Click Load and then Load Data.
 - Select 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
 - Disable this function.
 - Writing Mode
 - Select Overwrite.
 
 - Click Save.
           With this mapping, new records are added and data and deleted records with a value of 0 are overwritten. This ensures that no value is left out.
 
           Related topics