You are on page 1of 4

Learning module: Data Load Basics

Example Download
Exercise - INSTRUCTIONS The example files provided for
this exercise are of several
Analysis Goal: Use several types of simple data files to explore the basic different types.
features involved in the process of loading data into a Qlik Sense Desktop app.
All of the example files are
provided within the zip archive,
available for download from the
course site. Extract the files
Step 1: Create a new app
from the zip archive and place
• Launch Qlik Sense. them in a convenient location in
your Windows directory.
• Create a new app.
o Name of my new app: “Data Load Exercise”. The scenario for this exercise
involves the analysis of sales
made in the month of March,
Step 2: Load the first table 2015. We sell to companies who
• Use the Add data from files and other sources option to load data, with are organized into different
regions. Our sales department
the goal of adding Excel data to the app.
assigns a salesperson to each
• Navigate to the location of the example files you downloaded for this region, and each salesperson is
responsible for two or more
module.
regions.
• Select the file titled: MarchSalesData.xlsx.
Here are the files used in this
• Include all three fields from this Excel spreadsheet, and click the Add data
exercise assignment:
button.
MarchSalesData.xlsx
Contains company name, date
Step 3: Review data in the Data model viewer and sales amount
• Navigate to the Data model viewer ( ), and open it in a new tab, in CompanyRegion.xml
order to become familiar with the underlying data. Contains company name and
region company is located
• If necessary, expand the table to show all fields ( ).
RegionalSalesperson.txt
Contains salesperson name
Step 4: Add a second table and regions they are assigned
• Navigate to the Data manager view ( ), and open it in a new tab.
• Use the Add data option, shown as a plus symbol ( ), to add a second table to the app.

• Navigate to the location of the example files and select the file: CompanyRegion.xml.
• Include both fields from the table in the XML file.

• Switch the Data profiling option to Disabled (in order to automatically associate tables
with common field names).

• Click the Add data button to complete the data load process.

© 2019 QlikTech International AB. All rights reserved. Qlik®, Qlik Sense®, QlikView®, QlikTech®, Qlik Cloud®, Qlik DataMarket®, Qlik Analytics Platform®, Qlik NPrinting®, Qlik
Connectors®, Qlik GeoAnalytics®, Qlik Core®, Associative Difference®, Lead with Data™, Qlik Data Catalyst®, Qlik Associative Big Data Index™, Qlik Insight Bot™ and the QlikTech
logos are trademarks of QlikTech International AB that, where indicated by an “®”, have been registered in one or more countries. “Attunity” and the Attunity logo are trademarks of
Attunity Ltd. Other marks and logos mentioned herein are trademarks or registered trademarks of their respective owners.
Step 5: Review data in the Data model viewer (again)
• Return to the tab showing the Data model viewer in order to evaluate the association between these
two tables.
o Which field was automatically identified as the key field? (Answer = Company)

Step 6: Review associations in the Data manager view


• Return to the tab showing the Data manager view.
• Note that the bubbles are connected with a link to represent the association between these two tables.
o Click on the link, and examine the preview panel to confirm that the Company field in each
table was used to form the association.

Step 7: Create a visualization based on associated tables


• Return to the tab showing the sheet view, and toggle the sheet into Edit ( ) mode.
• Click the Charts ( ) icon in the assets panel, and add a Bar chart to the sheet, configured with the
following dimension and measure:
o Dimension = Region
o Measure = Sum(Sales)
(NOTE: These fields originate in separate tables.)

Step 8: Add a third table


• Use the Fields ( ) section of the assets panel to add a third table to the app. Click the + Add button
at the bottom of this section.

• Navigate to the location of the example files and add the file: RegionalSalesperson.txt.

• Ensure that the Field names: ‘SalesRegion’ and ‘Salesperson’ are correctly interpreted in the select
data dialog. [Hint: Ensure that the Field names selector is set to Embedded field names.]

• Leave the Data profiling switch set to Enabled, and click on the Add data button.

• Click the Load data button.

• Navigate to the App overview ( ), opened in the current tab, and click to open My new sheet.

Step 9: Review data in the Data model viewer (yes, again)


• Return to the tab showing the Data model viewer.
• Rearrange tables as needed to see the lines, representing associations, between tables.
• Note the lack of an association between the RegionalSalesperson table and the rest of the data model.

© 2019 QlikTech International AB. All rights reserved. Qlik®, Qlik Sense®, QlikView®, QlikTech®, Qlik Cloud®, Qlik DataMarket®, Qlik Analytics Platform®, Qlik NPrinting®, Qlik
Connectors®, Qlik GeoAnalytics®, Qlik Core®, Associative Difference®, Lead with Data™, Qlik Data Catalyst®, Qlik Associative Big Data Index™, Qlik Insight Bot™ and the QlikTech
logos are trademarks of QlikTech International AB that, where indicated by an “®”, have been registered in one or more countries. “Attunity” and the Attunity logo are trademarks of
Attunity Ltd. Other marks and logos mentioned herein are trademarks or registered trademarks of their respective owners.
Exercise Instructions | page 2
Step 10: Create a visualization based on unassociated tables
• Return to the tab showing the sheet view, toggle into Edit mode, and use the Charts section of the
assets panel to create a new bar chart which displays the following data:
o Dimension = Salesperson
o Measure = Sum(Sales)
(NOTE: The fact that all bars in this chart are the same height is evidence that the fields selected are not
supported by the associations in the underlying data model. Consider that the associations required to
relate Salesperson to Sales values are missing.)

Step 11: Correct the association issue


• Return to the tab showing the Data manager view in an effort to correct the association problem.

• In the Recommended associations panel, click on the Region-SalesRegion recommendation.

o A blue-colored link appears between the RegionalSalesperson table and the


records/records table, and the preview panel shows that the Region and
SalesRegion fields contain matching values which are used to form this association.

o Click the Apply button.

• Click the Load data button in order to complete the process of forming this new association between
tables.

Step 12: Review data in the Data model viewer (I promise, this is the last time)
• Return to the tab showing the Data model viewer.

• Rearrange tables, as required, to see the lines (representing associations) between tables.
o What is the association path between Salesperson and Sales fields?
(Answer = Salesperson is related to Region-SalesRegion; Region-SalesRegion is associated
with Company; Company is associated with Sales)

• Save the app.

© 2019 QlikTech International AB. All rights reserved. Qlik®, Qlik Sense®, QlikView®, QlikTech®, Qlik Cloud®, Qlik DataMarket®, Qlik Analytics Platform®, Qlik NPrinting®, Qlik
Connectors®, Qlik GeoAnalytics®, Qlik Core®, Associative Difference®, Lead with Data™, Qlik Data Catalyst®, Qlik Associative Big Data Index™, Qlik Insight Bot™ and the QlikTech
logos are trademarks of QlikTech International AB that, where indicated by an “®”, have been registered in one or more countries. “Attunity” and the Attunity logo are trademarks of
Attunity Ltd. Other marks and logos mentioned herein are trademarks or registered trademarks of their respective owners.
Exercise Instructions | page 3
Step 13: Review visualization
• Return to the sheet where you configured the invalid bar chart in Step 10.
• Based on the fact that there is now a valid association path, the bar chart showing Sum(Sales) per
Salesperson is now valid.

• However, the original bar chart you configured may now indicate an Invalid dimension. This is because
the new association has caused the Region field name to change to Region-SalesRegion.

• Correct this visualization as follows:


o Delete the Invalid dimension.
o Add the dimension:
Region-SalesRegion

© 2019 QlikTech International AB. All rights reserved. Qlik®, Qlik Sense®, QlikView®, QlikTech®, Qlik Cloud®, Qlik DataMarket®, Qlik Analytics Platform®, Qlik NPrinting®, Qlik
Connectors®, Qlik GeoAnalytics®, Qlik Core®, Associative Difference®, Lead with Data™, Qlik Data Catalyst®, Qlik Associative Big Data Index™, Qlik Insight Bot™ and the QlikTech
logos are trademarks of QlikTech International AB that, where indicated by an “®”, have been registered in one or more countries. “Attunity” and the Attunity logo are trademarks of
Attunity Ltd. Other marks and logos mentioned herein are trademarks or registered trademarks of their respective owners.
Exercise Instructions | page 4

You might also like