Qlik Sense Tutorial Building An App 1735606393
Qlik Sense Tutorial Building An App 1735606393
Qlik Sense®
November 2024
Copyright © 1993-2024 QlikTech International AB. All rights reserved.
HELP.QLIK.COM
© 2024 QlikTech International AB. All rights reserved. All company and/or product names may be
trade names, trademarks and/or registered trademarks of the respective owners with which they
are associated.
Contents
It is assumed that you are familiar with the basics of Qlik Sense. You know how to make selections
and how to interpret the results of your selection.
l Data loading
l App design
l Visualization creation
l Reuse of visualizations, dimensions and measures
l Data storytelling
When you have completed the tutorial, you should have a fair understanding of the different steps
involved in the building of a Qlik Sense app. You will also be aware of some of the necessary
considerations related to the design of the app.
Depending on the Qlik Sense platform that you are using, the screenshots in this tutorial may differ
slightly from what you see in Qlik Sense.
1.2 Prerequisites
Before you can start working with Qlik Sense, you need one of the following:
You can download Qlik Sense Desktop from www.qlik.com. If you need help with the installation,
you can find instructions at help.qlik.com.
These are the basic steps. In more advanced apps, scripting often includes much more than just
loading data.
2 Making preparations
In this step, you will create a new analytics app and add the data files from the Tutorial
- Building an App folder.
When Qlik Sense has started, you arrive at the hub, where you can create a new app from Work.
When you start Qlik Sense Desktop, you arrive at the hub. You can close the greeting message.
The hub is the storage of your apps. If you have installed Qlik Sense Desktop recently, you may not
have many apps yet, and in that case, you are about to begin building your first app!
Do the following:
1. Open the folder Documents. (It is sometimes called My Documents.) From there, the path is
Qlik\Sense.
2. Place the Tutorial source folder in the Sense folder.
4 Adding data
Your second step towards a complete app is loading the data.
l Sales.xlsx
l Item master.xlsx
l Cities.xlsx
l Sales rep.csv
l Customers.xlsx
Do one of the following depending on which version of Qlik Sense you are using.
4.1 Loading data from the first data file in Qlik Sense
Enterprise
It is good practice to add the most important file first, which in this case is Sales.xlsx.
If you are using Qlik Sense Enterprise, you will add the data files from the Tutorial source folder,
which you have placed on your computer if you followed the previous instructions.
Do the following:
Before you load data you will add more data files. Continue with Adding the Sales rep file (page 12).
Loading data from the first data file in Qlik Sense Desktop
It is good practice to add the most important file first, which in this case is Sales.xlsx.
If you are using Qlik Sense Desktop, you must have a data connection to the Tutorial source folder,
which contains the data files. The data connection to the Tutorial sourcefolder will be created when
you load the first data file Sales.xlsx from the Tutorial source folder.
Do the following:
File selection dialog where no data source is selected and all file types in the folder are shown
Do the following:
A progress window is displayed before the associations view of the data manager opens. In
this view your data is illustrated using bubbles. The table Sales is added and marked with *,
which indicates a new or updated table.
Before you load data you will add more data files. Continue with Adding the Sales rep file (page 12).
The Delimiter field is set to Semicolon, and that is correct. Qlik Sense automatically
recognizes the delimiter and by default displays the data with the correct delimiter.
Do the following:
Now you have associated the first two tables. The next step is to add more data files.
Under Field names, make sure that Embedded field names is selected to include
the names of the table fields when you load the data.
You have already associated the tables Sales and Sales rep. Qlik Sense helps you identify
recommended associations and you will now explore this.
Recommended associations are identified between all tables and you will now let Qlik Sense create
the associations for you.
Do the following:
l Click .
If you're using Qlik Sense Desktop, click Save.
The tables are now associated according to Qlik Sense recommendations.
All tables are now associated and you will now load the data.
Number interpretation variablesare system defined, that is, they are automatically generated
according to the current regional settings of the operating system when a new app is created.
In Qlik Sense Desktop,the regional settings is according to the settings of the computer operating
system. InQlik Sense Enterprise, it is according to the operating system of the server whereQlik
Sense is installed. In Qlik Cloud, it depends on which browser you are using.
To be able to use the tutorial files provided for this tutorial, you need to define the time and date
formats in the app.
Do the following:
SET FirstMonthOfYear=1;
SET CollationLocale='en-US';
SET CreateSearchIndexOnReload=1;
SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';
SET
LongMonthNames='January;February;March;April;May;June;July;August;September;October;Nov
ember;December';
SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';
SET LongDayNames='Monday;Tuesday;Wednesday;Thursday;Friday;Saturday;Sunday';
You should now have 18 SET statements at the beginning of the script.
Do the following:
Do the following:
2. In the toolbar in the data model viewer, click to expand the tables.
3. In the toolbar, click Save to save your work.
All tables are now connected and the data model viewer should have the following content. A field
connecting one or more tables is called a key.
The data model viewer with tables connected using key fields
You have now finished adding data and can start building your app.
5 App design
You have loaded the data. Now it is time to create sheets and visualizations.
Dashboard design involves using the right objects in the right way, and making the
sheets well structured and user-friendly.
This app will be fairly simple, but you will learn some basic design principles that are good to know.
If you want to build an app of your own, and want some inspiration, you should visit the Qlik
website. You can find a large number of apps serving a wide variety of purposes there.This is useful
if you are looking for a template when you want to design your own app.
If you are looking for assistance in creating analyses, you can use Insight Advisor. Insight Advisor
helps you create meaningful charts and analyses from your data. You can create visualizations by
selecting the analysis type you want to use and then select data to include in the analysis. You can
also create visualizations from your queries using search-based analytics.
1. Dashboard
2. Product Details
3. Customer Details
4. Customer Location
5. Insights
6. Manager dashboard
You will build the first four sheets manually. The last two sheets you will build using Insight Advisor.
Do the following:
The following screen shots show how your app will appear when you complete this tutorial.
As you can see, there are similarities between the sheets. The first four all contain filter panes that
are placed to the left. It is good to have consistency when you design an app. Insights and Manager
dashboard break from this design as their role in this tutorial is to show different chart creation
capabilities and advance analytics available through Insight Advisor
Visualizations that are present in several sheets should have the same position in all sheets so that
the user knows where to find them. There should be a logic in the design that supports the user in
achieving their goal of data discovery. Placement is one aspect of the design, another is the choice
of visualization.
Each visualization has its own advantages, and to be able to build an efficient and well-functioning
app, you need to be aware of those advantages. To some extent the visualizations are self-
explanatory.
Graphical elements are great for giving overviews and showing trends, whereas tables are
economical in that they can present large amounts of data using a limited space. You get exact
figures, but lose the quick and easily digestible information that is conveyed in graphical elements.
The screenshot for the sheet Dashboard shows the sheet when editing. You drag the charts to the
center of the area where you want to place them.
To the left there are two filter panes, the time filter pane without a title and Region. You will begin
with these.
Do the following:
You have created a filter pane and saved it as a master item which facilitates reuse.
Do the following:
1. In the assets panel to the left, click to open Charts and drag a filter pane to the sheet.
2. Click Add dimension and scroll down and select the field Region.
3. Use the handles to resize the filter pane according to the screenshot.
Dashboard sheet when editing (page 23)
4. Right-click the filter pane and select Add to master items.
5. Type the name Region and click Add.
Do the following:
1. In the assets panel to the left, click to open Charts and drag a pie chart to the sheet.
2. Click Add dimension and add the field Region.
3. In the assets panel to the left, click to open Fields.
4. Locate the field Sales, right-click it and select Create measure.
5. In the Create new measure dialog, in the Expression box, add Sum in front of (Sales) to
create the measure Sum(Sales).
6. Click Create.
The measure is added as a master item.
7. Drag the new measure Sales to the center of the pie chart.
8. In the properties panel to the right, click Appearance > Presentation and select Donut.
9. Still in the properties panel, click Colors and legend.
10. Set Colors to Custom and select By measure in the list.
11. At the top of the visualization, add the title Sales per Region.
12. Use the handles to resize the pie chart according to the screenshot.
Dashboard sheet when editing (page 23)
The donut pie chart is complete. The colors in the pie chart are by measure, which means the higher
the value, the darker the color.
You have many options when it comes to coloring the values. Just remember that the colors should
serve a purpose and not be used just to make the visualization more colorful.
Do the following:
The bar chart is complete. You have created a bar chart showing the top five customers. When you
make selections in other visualizations, these customers will change, accordingly.
If you had not cleared the selection Show others, the fifth bar would have been gray, summarizing
all the sales values where the company name is missing. This value can be useful to get an
understanding of how much of the sales that cannot be referred to a specific company.
Do the following:
The combo chart is complete. The two measures Sales and Margin Percent have one axis each,
which enables the combination of two totally different scales.
The primary axis to the left is used for Sales and the secondary axis to the right is used for Margin
Percent.
Do the following:
6. Click the right part of the Value bar, select Color green and Symbol in the dialog.
7. Drag the value limit to the right, to display the sales value as red in the KPI.
8. In the assets panel to the left, click to open Master items.
9. Click Measures.
10. Click Create new and type Sum(Margin) in the Expression box.
11. Type the name Margin and click Create.
Margin is added to the master item measures.
12. In the properties panel, under Data > Measures, click Add and select Margin.
The sum of margin is added to the KPI.
13. In the properties panel to the right, under Apperance > Color, click Second.
14. Set the limit for Margin as you did for Sales, but this time drag the value limit to the left, to
display the sales value as green in the KPI.
15. In the properties panel, under Appearance > Presentation select Left in the Alignment
drop-down.
16. In the properties panel, under Appearance > Presentation set Show title to On.
17. Type the following into the Title text box:
Total Sales and Margin
18. Resize the KPI object according to the screenshot.
Dashboard sheet when editing (page 23)
The KPI is complete and displays that total sales is below expectations, but still there is a sufficient
margin.
The different colors and symbols support the interpretation of the value. Red is worrying, whereas
green is good.
Do the following:
The different gauge colors support the interpretation of the value. Red is worrying, whereas green
is good.
Do the following:
6. Click in the properties panel on the right-hand side to expand the dimension Date.Quarter
and change its Label to Quarter.
7. Click Add measure and select Sales from the list Measures.
8. In the assets panel to the left, click to open Fields.
9. Click Date.
10. Drag the field Year to the line chart and click Add at the top.
11. Click in the properties panel on the right-hand side to expand the dimension Date.Year and
change its Label to Year.
12. In the properties panel, click Appearance > Presentation and select the checkbox Show
data points.
13. At the top of the visualization, add the title Quarterly Trend.
You have completed the first sheet. In the top right corner, click to move to the sheet Product
Details.
Do the following:
Do the following:
The bar chart is complete. By default, the measures are grouped when you add a second measure
to a bar chart.
Do the following:
The treemap and sheet are complete. The next sheet is the final one. In the top right corner, click
to move to the sheet Customer Details.
By now you have so much experience from creating dimensions, measures, and visualizations that
you do not need detailed procedures anymore. The only exception will be when you make changes
in the properties panel. If you need reminders of what you have learned so far, you can refer back to
the previous topics.
In the properties panel, at the bottom of Appearance, use the Range setting for the Y-axis and X-
axis to exclude the negative part of the axes.
You probably noticed that two measures were added to the scatter plot. The scatter plot is used to
visualize the relationship between two or three measures. In this case the measures compared are
Sales and Quantity. Each bubble represents a Customer dimension value. The visualization should
be named Customer Sales and Quantity.
You add more columns to the table from Data in the properties panel: use the measures Sales,
Quantity, and Margin Percent that are available as master items. Add them in that order to get the
same order as in the screen shot.
The remaining measures, for the last two columns, need to be created:
The qualifier Distinct is used in two of the expressions. By using Distinct, you ensure
that an invoice number is only counted once, even if it occurs several times in the data
source. Distinct sorts out unique numbers. Note that Distinct must be followed by a
space before the field name.
Do the following:
The pivot table presents dimensions and measures as rows and columns in a table. In a pivot table
you can analyze data by multiple measures and in multiple dimensions at the same time. You can
rearrange the measures and dimensions to get different views of the data. The activity of moving
measures and dimensions interchangeably between rows and columns is known as 'pivoting'.
One of the advantages of a pivot table is the interchangeability, that is, the ability to move row
items to columns and column items to rows. This flexibility is very powerful and enables you to
rearrange the data and have several different views of the same data set. Depending on what you
want to focus on, you move the dimensions and measures to bring forward data of interest and hide
data that is either too detailed, or irrelevant for the analysis.
You are now able to look at the sales for individual customers by product group and type. By
clicking Customer, Product Group or Product Type, or selecting individual items in the table, you
can filter the selections viewed in the table. By moving Product Group or Product Type to
Measures and filtering you can achieve differing views of the data presented.
Further information on the use of pivot tables can be found in the Qlik Sense online help at
help.qlik.com.
You can create a map by adding point layers and area layers to display your data. You need to
select a base map to provide the context for the layer data. You can add a measure value or an
expression to the dimension values, and use the size of the points or color by measure to reflect the
size of the measure.
Do the following:
Do the following:
The map size adjusts according to the selections made in the filters. For example, selecting Nordic
will zoom the map into the North European area showing the locations of sales in that area.
Specific areas of the map can be selected by holding down the shift key, while using the mouse to
draw a lasso around the area to be viewed. The selections in the filter panes then reflect the
selection made on the map.
Selecting a specific location on the map shows the customers at that location in the filter panes.
Selections in other sheets also affect the data shown in the Customer Location sheet.
Now you have finished the Building an App tutorial. Congratulations on your achievement of
building a Qlik Sense app!
Insight Advisor helps you quickly generate new charts or find existing charts in an app. If you are an
analyst, you can extend analysis in an app to charts not currently present in an app. If you are an
app creator, Insight Advisor helps you quickly build new charts and visualizations based on your
specifications.
Insights sheet
Insight Advisor can also create whole sheets containing multiple visualizations.
Natural language searches work best when you use field and master item names.
English is used by default for browsers not set to a supported language. The language
used for queries can be changed by selecting a new language from the Language
button. For more information, see Enabling multi-language natural language queries in
Qlik Sense Enterprise on Windows.
If your Qlik Sense deployment includes access to a Qlik Sense SaaS tenant,
administrators can enable support for additional languages. For more information on
supported languages in Insight Advisor Search, see Supported languages.
Do the following:
1. In the Ask Insight Advisor search box, enter Who are the top five Manager for Sales and
click .
2. On the generated bar chart, click Add to sheet and select Insights.
Do the following:
1. In the Ask Insight Advisor search box, enter what are the lowest 3 product groups for sales
and click .
2. Select the bar chart.
3. In the Analysis properties panel, click Bar chart (grouped) and select Multi KPI.
4. Under Analysis period, select YearMonth-last sorted value.
5. Click Add to sheet and select Insights.
6. Click Insight Advisor to return to the sheet.
7. Click Edit sheet.
8. In the top right, toggle on Advanced options.
9. Select the multi KPI.
10. In the properties panel, select the measure Sales 2014-Jun.
11. Under Number formatting, select Money.
12. Select the measure Sales 2014-May.
13. Under Number formatting, select Money.
14. At the top of the visualization, add the title Bottom 3 product groups for sales.
15. Click Done editing.
Do the following:
Feel free to move and resize the visualizations to match the screen shot above.
Do the following:
These sheets are complete. Next, you will learn about filters. In the assets panel, click Sheets and
click Create new sheet. Name the new sheet Filters and open it.
You are done making visualizations. Now you will complement your app with data storytelling.
11 Data storytelling
With data storytelling you can create a presentation based on the data in your app. You
can take snapshots of selected visualizations and use them in your narrative together
with text, shapes, and effects.
You create slides and design the story with your particular audience in mind. In your narrative you
focus on key elements and create a convincing story to make your message clear.
An additional, useful feature of data storytelling is that you can easily switch between a snapshot in
the presentation and its context in the app. In the app context, you can make new selections and
continue the analysis from where you left off in the presentation.
In the presentation you will focus on the three largest regions and analyze the sales trends.
Do the following:
1. Right-click the visualization Sales per Region and select Storytelling snapshots > Take
snapshot.
2. In Region, select Nordic.
3. Right-click the visualization Top 5 Customers and select Storytelling snapshots > Take
snapshot.
4. In the annotation dialog that opens:
a. Type Nordic in the annotation text field.
b. Click outside the annotation dialog to close it.
5. Right-click the visualization Quarterly Trend and select Storytelling snapshots > Take
snapshot.
6. In the annotation dialog that opens:
a. Type Nordic in the annotation text field.
b. Click outside the annotation dialog to close it.
7. In Region, deselect Nordic and select USA.
8. Take snapshots from the same visualizations as for Nordic (Top 5 Customers and Quarterly
Trend) and annotate them with USA.
9. In Region, deselect USA and select Japan.
10. Take snapshots from the same visualizations as for Nordic (Top 5 Customers and Quarterly
Trend) and annotate them with Japan.
You have taken all the snapshots you need and can start creating your data storytelling slides.
Slide 1
Slide with title 'Three largest regions' and three snapshots of pie charts
Do the following:
11. In the new pie chart, click and select Nordic in the list Select data point.
12. In the same manner as for the second pie chart, create a third pie chart and highlight Japan.
13. Click Save (only if you are using Qlik Sense Desktop).
Slide 2-4
Slide with title 'Nordic' and two snapshots of a bar chart and a line chart.
Slides 2-4 show the top five customers and the quarterly sales trend for the three regions. The
snapshots are stored in the library in the order they were taken, with the latest one at the top. If you
have followed the procedures when taking these snapshots, the two at the top should be Japan,
the two ones below, USA, and the remaining two, Nordic.
Do the following:
You can right-click the snapshot and select Go to source, if you want to see the
selections in that version of the snapshot. Then, click Return to go back to the
story.
11. Replace the Quarterly Trend snapshot just as you did with the Top 5 Customers snapshot.
12. Duplicate the USA sheet and adjust it to present Japan. Now use the snapshots in the top of
the list in the Replace snapshot dialog. If you followed the instructions they have the
annotation Japan.
When analyzing these slides it is important to know that the figures for 2014 are half-year figures.
Extrapolating the figures for the full year would then give different forecasts for the different
regions.
The story is complete. Click in the upper left corner to play your presentation. You can navigate
with the left and right arrow keys.
Close the story and make edits, if needed. Below the slide you have tools for cutting, copying, and
pasting that can be useful when you edit your presentation. And, of course, you can use the panel
to the right.
The go to source option is also useful for the special purpose of verifying that the right bar charts
and line charts are used. When you select Go to source you will see which region is selected for
that specific snapshot.
Additional options
There are many options that have not been used in this story. Experiment on your own. Try and add
effects to the bar chart. Add a new slide and embed a complete app sheet where you can make
selections when you are in play mode. Add URLs or bookmarks to text strings. There is plenty more
to discover.