Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Introduction
Welcome to Analysis Modelling Fundamentals. In this chapter we will learn about designing and creating analysis models including cleansing and enriching data.
Concepts
To find out more about the Analysis Modelling options and design principles before you complete the chapter below, or simply to refresh your memory, see Analysis Models for Batch Processing Data.
Video Demonstration
Watch the video demonstration, then complete the task list below.
Part 2 - Analysis Fundamentals
Iframe | ||||||||
---|---|---|---|---|---|---|---|---|
|
Fundamentals Tasks
Complete the tasks below, before moving to the next chapter.
Note: If you have not completed 5. Analysis Fundamentals - Part 1, it is recommended you do this before undertaking the below tasks.
Task 1: Setup a Merge Table
Open the CRM Data Import Analysis Model
- On the toolbar, hover over
and click and drag aInsert excerpt _tables _tables nopanel true
onto the canvasInsert excerpt _table_merge _table_merge nopanel true - In the table's
, change the name to:Insert excerpt _property_settings _property_settings nopanel true All Company Data
- Hover over the Companies table and select the
icon, then click on the All Company Data table to connect the two tablesInsert excerpt _pipe_icon _pipe_icon nopanel true
Task 2: Deduplication on the in Pipe
- Click on the in pipe between the Companies table and All Company Data table
- On the in pipe's
, under Sort/Group, select theInsert excerpt _property_tabs _property_tabs nopanel true
iconInsert excerpt _attributes_icon _attributes_icon nopanel true - From the
list, select CompanyID and drag it into the Sort/Group sectionInsert excerpt _attributes _attributes nopanel true - Close the attribute window
- On the in pipe's Basic Settings, change Data to Read to
All
the changesInsert excerpt _save _save nopanel true - Then
the modelInsert excerpt _save_saveModel _save_saveModel nopanel true
Task 3: Deduplication on the in_2 Pipe
- Hover over the Companies table and select the
iconInsert excerpt _attributes_icon _attributes_icon nopanel true - Select all of the
in the list, then drag and drop them onto the All Company Data tableInsert excerpt _attributes _attributes nopanel true - Make the Companies table static by hovering over it and pressing the
iconInsert excerpt _static_icon _static_icon nopanel true - Hover over the Additional Companies Processed table and select the
icon, then click on the All Company Data table to connect the two tablesInsert excerpt _pipe_icon _pipe_icon nopanel true - Click on the newly created in_2 pipe, and in its
, scroll to the Sort/Group sectionInsert excerpt _property_settings _property_settings nopanel true - Select the
iconInsert excerpt _attributes_icon _attributes_icon nopanel true - From the
list, select CoID and drag it into the Sort/Group sectionInsert excerpt _attributes _attributes nopanel true - Close the attribute window
the in_2Insert excerpt _finish _finish nopanel true Insert excerpt _property_tabs _property_tabs nopanel true
Task 4: Set the in_2 Pipe as the Master Data
- Click on the All Company Data table and
itsInsert excerpt _pin _pin nopanel true Insert excerpt _property_tabs _property_tabs nopanel true - In the
, under Attributes, double-click on the CompanyID attribute and make the following change:Insert excerpt _property_settings _property_settings nopanel true - Expression:
_key[1]
the changesInsert excerpt _finish _finish nopanel true
- Expression:
- Double-click on the CompanyName attribute and change the Expression to:
Code Block | ||
---|---|---|
| ||
ifNull(in_2.Name, in.CompanyName) |
4.
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
5. Repeat the above steps 3 and 4 for the remaining attributes, changing the attribute name each time
a. For example, change the Expression for the Web attribute to:
Code Block |
---|
ifNull(in_2.Web, in.Web) |
Task 5: Run Analysis
- Hover over the Additional Companies Processed table and click the
iconInsert excerpt _static_icon _static_icon nopanel true - Hover over the All Company Data table and click the
iconInsert excerpt _run_analysis_icon _run_analysis_icon nopanel true - On the message window, click Yes
Task 6: Rollback Recordsets (Optional)
- Hover over the All Company Data table and click the
iconInsert excerpt _recordsets_icon _recordsets_icon nopanel true - On the Recordsets window, right-click on the recordset and select
RecordsetInsert excerpt _rollback _rollback nopanel true - In the Warning box, choose the Rollback all data option and toggle off
Keep Old Recordsets, then ConfirmInsert excerpt _toggle_off _toggle_off nopanel true - Hover over the All Company Data table and click the
iconInsert excerpt _run_analysis_icon _run_analysis_icon nopanel true