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 take the course 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 1 - Analysis Fundamentals
Iframe | ||||||||
---|---|---|---|---|---|---|---|---|
|
Fundamentals Tasks
Complete the tasks below, before moving to the next chapter.
Task 1: Download Learning Centre Files
- Access the Learning Centre using the Help link in the top right corner of PhixFlow or via Learning Centre
- Scroll to the bottom of the webpage and in the Sample Datasets section, download the files:
- Companies
- Companies Additional
Task 2: Create the Analysis Model
- Select from the PhixFlow home page
- Click
- On the Create Analysis Model window that appears, enter the name,
CRM Data Import,
and select Create
Task 3: Add a File Collector
- Add a new File Collector by hovering over
in the toolbar and clicking and dragging theInsert excerpt _files _files nopanel true
icon onto the canvasInsert excerpt _file_collector _file_collector nopanel true - In the
on the right, enter the name,Insert excerpt _property_settings _property_settings nopanel true Additional Companies
,
andInsert excerpt _save _save nopanel true
- In the
- Hover over the Additional Companies File Collector on the canvas and in the pop-up menu, click the
iconInsert excerpt _upload_file_icon _upload_file_icon nopanel true - In the Upload File window:
- choose Select
- find the Additional Companies file on your PC/laptop
- click Open
- click Upload File
- An Additional Companies table will be automatically created and added to the canvas
- this table does not yet hold the data you have uploaded, only the attributes (column headers). This allows any changes to be made to the attributes first which affects how the data is imported
Task 4: Setup the Additional Companies table
- Click on the Additional Companies table and
the tabInsert excerpt _pin _pin nopanel true - In the table's
, in the Attributes section, make the following changes:Insert excerpt _property_settings _property_settings nopanel true - double-click on the attribute TurnOver and change:
- Type:
Decimal
- Decimal Places:
2
Insert excerpt _finish _finish nopanel true
- Type:
- click
and set up the following new attribute:Insert excerpt _add_icon _add_icon nopanel true - Name:
Source
- Expression:
"Additional Company Data"
Insert excerpt _finish _finish nopanel true
- Name:
- Move the attribute Source to position 13 in the attribute list
- do this by dragging and dropping Source over Status
- A message will show asking to confirm if this table attribute should be moved - select Yes
- double-click on the attribute TurnOver and change:
Task 5: Import the Additional Companies data
- To import the data from the File Collector to the table, hover over the Additional Companies table and select
Insert excerpt _run_analysis_icon _run_analysis_icon nopanel true - Confirm that you want to Run Analysis by pressing Yes on the message
- A
icon will show on the table to indicate it now holds dataInsert excerpt _database _database nopanel true
- A
- View the imported data by hovering over the Additional Companies table and selecting
Insert excerpt _view_show_icononly _view_show_icononly nopanel true - On the Analysis Model toolbar, press
Insert excerpt _save_saveModel _save_saveModel nopanel true
Task 6: Add the Companies table
- In 2. ERD Fundamentals you created a Companies table - this can be added to your Analysis Model by clicking the
icon in the toolbarInsert excerpt _tables _tables nopanel true - If you have not completed 2. ERD Fundamentals, repeat the relevant steps in Task 2-5 above to import the Companies table
- The list of tables in your app opens in the
on the rightInsert excerpt _repository _repository nopanel true - Click and drag the Companies table onto the canvas
- To see the File Collector for the table, hover over the Companies table and press
Insert excerpt _table_show_inputs_icon _table_show_inputs_icon nopanel true
- To see the File Collector for the table, hover over the Companies table and press
Task 7: Enrich the data
- Hover over the
icon in the toolbar and drag aInsert excerpt _tables _tables nopanel true
onto the canvasInsert excerpt _table_calculate _table_calculate nopanel true
- In the Basic Settings for the new table, name it: Additional Companies Processed
the settingsInsert excerpt _save _save nopanel true - Connect the tables by hovering over the Additional Companies table and clicking on
, then click on the Additional Companies Processed tableInsert excerpt _pipe_icon _pipe_icon nopanel true - Hover over the Additional Companies table and select the
icon to list all of the attributes for this tableInsert excerpt _attributes_icon _attributes_icon nopanel true - Copy these attributes by selecting them all, then dragging and dropping them onto the Additional Companies Processed table
- Click on the Additional Companies Processed table and in the Attributes section on the
:Insert excerpt _property_tabs _property_tabs nopanel true - click the
icon, then clickInsert excerpt _more_options _more_options nopanel true
to show the attributesInsert excerpt _refresh _refresh nopanel true - add a new attribute by clicking the
button and giving it the following settings:Insert excerpt _add_icon _add_icon nopanel true - Name:
ImportDate
- Type:
Datetime
- Expression:
now()
the changesInsert excerpt _finish _finish nopanel true
- Name:
- click the
Task 8: Enhance the Additional Companies Processed table
- In the Additional Companies Processed table, on the
make the following changes to the attributes:Insert excerpt _property_tabs _property_tabs nopanel true - Double click on the Name attribute and change the expression to:
Code Block |
---|
trim(in.Name) |
b. Double click on the Web attribute and change the expression to:
Code Block | ||
---|---|---|
| ||
ifNull( // If a website is provided use it in.web, // ELSE, if it is NULL, use "https://www.google.com/search?q=" + replaceAll(_out.Name, "[ ,.]", "") ) |
c.
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
d. On the Analysis Model toolbar, press
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Task 9: Make the tables static
- Hover over the Additional Companies table and select the
iconInsert excerpt _static_icon _static_icon nopanel true - Hover over the Additional Companies Processed table and select the
iconInsert excerpt _run_analysis_icon _run_analysis_icon nopanel true - Confirm you want to Run Analysis by pressing Yes to the message
- Once the
icon shows on the table indicating there is now data in the table, hover over the table and pressInsert excerpt _database _database nopanel true
to see the results of the expressions you added in Task 8Insert excerpt _view_show_icononly _view_show_icononly nopanel true
the modelInsert excerpt _save_saveModel _save_saveModel nopanel true