This article will cover the interface of a Qlik Sense app’s logical model. A logical model is a model of how Qlik Sense interprets the data inside an app. The Qlik AI uses this model to answer users’ questions to the insight advisor. Note that some features of the interface may look slightly different depending on the product and version you are using. 

By default, an app’s logical model will be designed by Qlik Sense. You can use the app’s top bar to enter the logical model viewer. The first time you do, it will look similar to this. 

If you want to design your own logical model, you need to click ‘Continue’. The interface will then look similar to this:

The interface consists of:

  1. The app top bar
  2. The logical model top bar
  3. The logical model

The app top bar

The app top bar is the top bar visible on every page of the app. See ‘App Overview Interface’ for further information on the top bar.

The logical model top bar

The logical top bar contains buttons to toggle between the various logical model areas. It also contains the options to ‘Reset to default’ and ‘Disable logic’ on the right. Resetting to default will revert to using the default Qlik Sense logical model. Disabling logic will remove the model altogether.

The logical model

The logical model is the main screen. The logical model sections you can navigate to using the top bar are:

  • Overview
  • Fields & groups
  • Packages
  • Hierarchies
  • Behaviors
  • Calendar periods

Overview

The overview shows a summary of the logical model’s other sections.   

Fields & groups

The fields & groups section shows you all the fields available in your data model. You can use this screen to change which fields are visible and how the model reads them.

The screen looks similar to this: 

The screen shows:

  1. A ‘Create group’ button – this option will launch a pop-up where you can create a new group. By default, Qlik may have grouped the existing fields in your data model. If any fields are ungrouped you can use this button to create a new group and add them there.
  2. Display toggles – the option to ‘Order by group’ allows you to show the fields underneath their respective group name or to just show all fields line by line and show the group name in an additional column. The option to ‘Show visible only’ will hide those fields that have a ‘Visibility’ status of ‘hidden’.
  3. The group name – this is the group name of the fields underneath. If you toggle the ‘Order by group’ option off, the group name will be shown as an additional column next to each field.
  4. The ‘Edit group’ option. This is where you can edit an existing group by changing the name and removing or adding fields. You cannot change the group type. 
  5. The fields – each field in the data model is shown as a line. You can change the visibility, the classification, the data value lookup and the default aggregation. There are also further options to ‘Move item’, ‘Create behaviour’ and ‘Ungroup’ the field.   

Packages

Packages are where existing groups can be closer associated together. Doing this will show the insight advisor that these particular groups should be given preferential associations when making recommendations. Creating packages is optional.

The only options you have on this screen are to create a package or edit/ delete existing packages.

Hierarchies

The hierarchies screen is where you can define drill-down types of relationships between groups. This is optional. The only options here are to create a new hierarchy or to edit/ delete existing ones.

Behaviors

Behaviors are a way to help the insight advisor interpret relationships. For example, you can set the advisor to disallow forming of certain relationships to stop selections that may cause incorrect results. Creating behaviors is optional. The only options on the screen are to create a new behavior or to edit/ delete existing ones.   

Calendar periods

The calendar periods screen is where you can define preferential calendar periods. For example, you could set a period of ‘current month’, ‘last month’, ‘this year’ etc. This is optional. If you don’t set calendar periods, Qlik will create them by default. The options on the screen are to create a new calendar period or to edit/ delete existing ones.