Skip to main content

What is Insight Advisor and business logic?

ON THIS PAGE

What is Insight Advisor and business logic?

Insight Advisor is a suite of Qlik Sense features. Insight Advisor helps you build your data model, create visualizations, and analyze data. Business logic helps Insight Advisor interpret your data.

Insight Advisor

Insight Advisor comprises the following Qlik Sense features:

  • Insight Advisor search-based analysis: Search-based analysis is available from Insights in the Analyze tab of an app. Search-based analysis creates visualizations based on natural language searches or selections of fields and master items. Insight Advisor search-based analysis can also generate charts of potential interest.

  • Insight Advisor Chat: Insight Advisor Chat is a chat-based interface for conversational analytics. Insight Advisor Chat enables you to make natural language searches from the hub to apps to which you have access. Insight Advisor Chat then returns relevant visualizations.

  • Associative insights: Associative insights helps you uncover blind spots and reveal relationships you may have missed. Associative insights compares the contributions of your selections and excluded values against your measures.

  • Chart suggestions: Chart suggestions enable you to select data fields when editing a sheet and let Qlik Sense choose the dimensions, measures, and visualization types. The suggested chart adjusts itself based on your changes. You can customize a suggested visualization with a focused set of properties.

  • Recommended associations: Insight Advisor can recommend associations between your data tables in the Associations view in Data manager. The Recommended associations panel lets you view and apply these recommendations.

This tutorial will focus on improving search-based analysis with business logic.

Insight Advisor search-based analysis

Insight Advisor search-based analysis is available from Insights in the Analyze tab in an app. In Insights, you enter natural language searches, such as 'what is profit by employee for 2020'. You can also select specific data assets. Insight Advisor then generates charts or finds matching charts in the app. If you are creating apps, Insight Advisor search-based analysis helps you making apps based on the questions you want answered. If you are using an app, Insight Advisor helps you find the right visualization to answer your question, either in the app or by creating it for you.

For example, you are interested in viewing some visualizations that show profit earned by each employee. Open the tutorial app in Qlik Sense. In Insights, search for show profit by employee. Insight Advisor generates results.

Results for show profit by employee

Insight results for 'show profit by employee'. There is a bar chart show shows the sum of Gross Profit by Employee ID, a table of values for employee ID and Gross Profit, and a combo chart that shows the contribution of employee ID to the sum of gross profit.

You have one matching result, that shows the sum of Gross Profit by EmployeeID, and some additional results. You can add these charts to sheets in our app.

While these results matched what we were looking for, the fields selected could be improved. In trying to pick a field to match employee from the data model, Insight Advisor selected EmployeeID. The field EmployeeName is more useful in analysis, however. The sum of Gross Profit in the chart is also for all time. While this is not wrong, you may want to see more recent data by default.

In Insight properties, you can teach Insight Advisor that you prefer EmployeeName by selecting that dimension. These precedents are learned on a user-by-user basis. An app developer, however, can create a model that shows Insight Advisor exactly how to interpret the data model and use the fields within it. This logical model is used by Insight Advisor for all users using the app. You can do this using business logic.

Business logic

Business logic is an optional part of data preparation that defines the logical model used by some Insight Advisor features to interpret your data model. Business logic comprises two main features:

  • Logical model: The data model of the app used when generating visualizations.

  • Vocabulary:¬†Alternative terms for natural language queries.

Insight Advisor uses business logic in the following Insight Advisor features:

  • Insight Advisor search-based analysis

  • Insight Advisor Chat

  • Associative insights

Logical model

The logical model is the conceptual model Insight Advisor uses when creating visualizations. It is built from the data model of an app. Each app has a single logical model. Fields and master items are the core components of this model. They are organized into groups. Groups indicate a conceptual association or relationship between fields or master items. Once you define these, you can then specify other relationships and handling behavior. These include:

  • Packages:¬†Packages enables you to create collections of related groups. This prevents groups from being used together that are not in the same package.
  • Hierarchies: Hierarchies enables you to define drill-down analytical relationships between groups.
  • Calendar periods: Calendar periods enables you to create default periods of analysis for Insight Advisor.
  • Behaviors: Behaviors enables you to specify prefer or deny relationships between fields. Behaviors can also enforce required selections and default calendar periods.

Vocabulary

Business logic vocabulary enables you to improve the success of natural language queries. With vocabulary, you can define terms and values that may be used in natural language queries that are not present in your data model. For example, you can use vocabularies to define:

  • Alternative names or synonyms for fields, master items, and values.

    For example, Earnings, Proceeds, and Revenue for the field Income.

  • Names for coded values

    For example, names for medical classifications codes.

  • Names for groups of values from a field

    For example, defining named age ranges for a field containing ages.

  • Common acronyms and abbreviations not in the data.

    For example, yr for year or num for number.