5a. Analysis Fundamentals - Part 2
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
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 a Table onto the canvas Merge Table
- In the table's , change the name to: Properties
All Company Data
- Hover over the Companies table and select the icon, then click on the All Company Data table to connect the two tables
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 the Properties tab icon
- From the
- Close the attribute window
Attributes list, select CompanyID and drag it into the Sort/Group section - On the in pipe's Basic Settings, change Data to Read to
All
- the changes Apply
- Hover over the Companies table and select the icon
- Select all of the Attributes in the list, then drag and drop them onto the All Company Data table
- Make the Companies table static by hovering over it and pressing the icon
- Then the model Save
Task 3: Deduplication on the in_2 Pipe
- Hover over the Additional Companies Processed table and select the icon, then click on the All Company Data table to connect the two tables
- Click on the newly created in_2 pipe, and in its , scroll to the Sort/Group section Properties
- Select the icon
- From the Attributes list, select CoID and drag it into the Sort/Group section
- Close the attribute window
- the in_2 Apply and Close Properties tab
Task 4: Set the in_2 Pipe as the Master Data
- Click on the All Company Data table and Properties tab Pin its
- In the , under Attributes, double-click on the CompanyID attribute and make the following change: Properties
- Expression:
_key[1]
- the changes Apply and Close
- Expression:
- Double-click on the CompanyName attribute and change the Expression to:
ifNull(in_2.Name, in.CompanyName)
4. Apply and Close the changes
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:
ifNull(in_2.Web, in.Web)
Task 5: Run Analysis
- Hover over the Additional Companies Processed table and click the icon
- Hover over the All Company Data table and click the icon
- On the message window, click Yes
Task 6: Rollback Recordsets (Optional)
- Hover over the All Company Data table and click the icon
- On the Recordsets window, right-click on the recordset and select Recordset Rollback
- In the Warning box, choose the Rollback all data option and toggle off Keep Old Recordsets, then Confirm
- Hover over the All Company Data table and click the icon
Further Reading (Optional)
For more information on the topics covered in this chapter, see the below links.