Skip to main content Skip to complementary content

Example - Creating a tabular report

In this example, you will build an Excel-based report to analyze sales by product, year, and region.

Example result

Before you start

Create a new template

Tip noteFor more information about getting started with the add-in, see Getting started with using Qlik add-ins for Microsoft Office.

Get started

  1. Open Microsoft Excel and create a new XLSX file. This will be your template file.

  2. Click the Qlik add-in icon in the ribbon bar under the Home tab.

    Open the Qlik add-in by clicking the Qlik icon in the ribbon bar

    Ribbon bar in Microsoft Excel showing the Qlik add-in icon
  3. Log in to the add-in using your Qlik Cloud credentials.

    Connecting to the tenant and logging in

Connect to the application

  1. Select the Space where you have uploaded the application.

  2. Under App, select the application.

  3. Click Save.

    Connecting to the uploaded application in the template

    Add-in pane 'Home' tab, selecting source application to connect to.

The template is now connected to the application.

Add a level and a page

With levels and pages, you can automate the creation of filtered worksheets, cycling report data for each dimension or chart value:

  • A level creates a new section for each dimension or chart value.

  • A page create a new worksheet for each dimension or chart value.

Tip noteFor more information about levels and pages, see Working with levels and pages in tabular report templates.

Add a level

Add a level object to generate a separate section on the same worksheet for each unique value of a dimension or chart. In this case, create a new section for each region.

  1. In the worksheet, select cell A3 to put it in focus.

  2. In the add-in, click the Levels and pages icon on the top toolbar.

    The Levels and pages section opens.

  3. Click Add level.

  4. Expand Fields.

  5. Click Plus symbol next to Region.

    Selecting the field to use as a level

    Selecting the field 'Region' to use it as a level
  6. Under Select fields to add (optional), check the box for Region.

    This will insert a field tag with the level tags, creating section headers for each value.

  7. Click Add.

After creating the level, add 3 rows under the <Region> field tag. This is where the report data will be added.

Add a page

Add a page object to generate separate worksheets for each unique value of a dimension or chart. In this case, create a new worksheet for each year.

  1. In the add-in, click the Levels and pages icon on the top toolbar.

    The Levels and pages section opens.

  2. Click Add page.

  3. Expand Fields.

  4. Click Plus symbol next to Date.autoCalendar.Year.

    Selecting the field to use

    Selecting the field to use as a page
  5. Under Select fields to add (optional), leave Date.autoCalendar.Year unchecked.

  6. Click Add.

The worksheet title is updated with the name of the field used for the page object.

Template with level and page added

Add a chart image

Now that you have defined a level and page, add a chart image.

  1. In the worksheet, select cell A5 to put it in focus.

  2. In the add-in, click the Chart object icon on the top toolbar.

    The Charts section opens.

  3. Click Add chart.

    A list of available sheets appears.

  4. Expand the Dashboard sheet.

  5. Click Plus symbol next to the Top 5 Customers chart.

    Selecting the source chart to add as an image

    Selecting the source chart to add as an image
  6. Resize the chart image to your preferences, and then resize the height of the row so it matches the size of the chart image.

Tip noteFor more information about adding chart images, see Adding charts as images to report templates with Qlik add-ins for Microsoft Office.

Add tabular data

Next, add a table based on a chart in the source application.

Part 1: Add the source table

  1. In the worksheet, select cell A6 to put it in focus.

  2. In the add-in, click the Tables icon on the top toolbar.

    The Tables section opens.

  3. Click Add table.

    A list of available sheets appears.

  4. Expand the Sales Tables sheet.

  5. Click Plus symbol next to the Sales By Product Group chart, and select Individual columns.

    Selecting the source chart to add as an image

    Selecting the source chart table to add as tabular data
  6. Under Select columns to add, check All.

  7. Click Add.

    All columns from the source chart are added as individual columns in the worksheet.

Part 2: Adjust the formatting

You can customize the table by applying native Excel formatting, such as:

  • Resizing column widths

  • Changing fonts, text size, and adding cell-specific styling

  • Customizing number formatting

If you want to customize formatting in the table, you need to turn off Keep source formats for the table object you just created.

  1. With the table object selected in the add-in window, uncheck Keep source formats under Table settings.

    Now you can change the formatting by applying changes to the cell contents of the table.

  2. By default, the table object has fixed-text column headers inserted above it. These are not part of the table object.

    Under Table settings for the object, set Display headers to Show above tag cell. This ensures table headers are not duplicated.

  3. Style the fixed-text headers by making the font size slightly larger than the tag cells.

Tip noteFor full details about customizing tabular formatting properties, see Formatting properties for tabular data in Excel report templates.

Template after adding chart image and table, and applying some custom formatting

Template after adding chart image and table, and applying some custom formatting

Add a native Excel pivot table

Next, add an Excel PivotTable to summarize the application's data at a high level.

Information note

Excel-native pivot tables connected to Qlik application data are not supported when placed inside a level. You can, however, place the Excel pivot table inside a worksheet with a page.

Tip note

For further details, see Working with native Excel tables.

Part 1: Insert the source tabular data

  1. Create a new worksheet and title it PivotTable source.

  2. In the add-in, click the Tables icon on the top toolbar.

    The Tables section opens.

  3. Click Add table.

    A list of available sheets appears.

  4. Expand the Sales Tables sheet.

  5. Click Plus symbol next to the Sales Details 2021-2023 chart, and select Individual columns.

  6. Under Select columns to add, check All.

  7. Click Add.

    All columns from the source chart are added as individual columns in the worksheet.

Part 2: Convert the tabular data to an Excel table

  1. Select the following in the worksheet:

    • Header row

    • The row with tags

    • One additional blank row

    • All desired columns

    Selecting the required area to create a native Excel table

  2. Convert the selected area to an Excel table. The exact procedure depends on your Excel version. For example, select a cell in the table, and click InsertTable in the ribbon.

    For exact steps, refer to the official Microsoft documentation.

  3. Select cell A3 in the Excel table. In the add-in window, under Tags, click Add tag: <deleterow>.

A <deleterow> tag is inserted in cell A3.

Native Excel table created with <deleterow> tag inserted in final row

Part 3: Convert the Excel table to an Excel pivot table

  1. Transform the Excel table you just created into a native Excel PivotTable. The exact steps may depend on your Excel version. For example, click Insert > PivotTable in the ribbon.

    For exact steps, refer to the official Microsoft documentation.

  2. When prompted, select the option to add the new PivotTable on a new worksheet.

  3. In the PivotTable field list, configure the pivot table as follows:

    • Rows:

      • Region

      • Product Group

      • Sales Rep Name

    • Columns:

      • Year

    • Values:

      • Sum of Sales

  4. Change the labels in the pivot table according to preference.

PivotTable created on new sheet in template

Add a variable

You can add variables from the analytics application to the report. Variables store values that can change dynamically. You can add a variable that has been added to the application, storing today's date.

Part 1: Add the variable

  1. In the worksheet where you added the PivotTable, rename the worksheet Summary.

  2. In the worksheet, select a blank cell in the middle of row 1, about halfway across the entire content width.

  3. In the add-in, click the Variables icon on the top toolbar.

    The Variables and expressions section opens.

  4. Click Add variable.

    A list of available variables appears.

  5. Click Plus symbol next to vTodayDate .

    Selecting the variable to use

    Selecting the variable to use

Part 2: Format the variable as a banner

  1. In the worksheet, merge and center two groups of cells in row 1, with the right group being the one that contains the variable.

  2. In the cell for the left group, type the following:

     Report generated on:
  3. By default, in tabular reports, dates are formatted as serial numbers. You can format the date according to your preferences. The exact procedure depends on your Excel version. An example:

    1. Select the <vTodayDate> tag in the template.

    2. Right-click the cell, and select Format cells.

    3. Select Date, and then choose the date format you would like to display.

    4. Click OK.

After adding the banner, you can customize it with native Excel formatting. For example, you can adjust text styling, add cell background colors, and add borders.

Banner in the report, using a variable to display when the report is generated

Banner in the report, using a variable to display when the report is generated

Add an expression

You can add expressions to the report with Qlik-native calculations based on the application data. For example, you can add a cell showing high-level metrics, such as total sales, without creating a table.

Part 1: Add the expression

  1. In the worksheet, select a cell in the middle of row 2, about halfway across the entire content width.

  2. Click Left-directional arrow to return to the Variables and expressions section menu.

  3. Click Add expression.

  4. Type a Name for the expression, for example: TotalSales.

  5. Under Expression, type sum(Sales).

    Configuring the expression in the add-in

    Configuring the expression in the add-in
  6. Click Create.

Part 2: Format the expression with a title cell

  1. In the worksheet, merge and center two groups of cells in row 2, with the right group being the one that contains the expression.

  2. In the cell for the left group, type the following:

     Total Sales:
  3. Customize the number formatting for the TotalSales expression. The exact procedure depends on your Excel version. An example:

    1. Select the <TotalSales> expression tag in the template.

    2. Right-click the cell, and select Format cells.

    3. Select Currency, and click OK.

After adding the title and expression, you can customize it with native Excel formatting. For example, you can center their text, adjust text styling, add cell background colors, and add borders.

Expression for total sales added with the add-in and styled using native Excel formatting

Expression total sales added with the add-in

Preview the report

Before finishing the report, you can set formatting and styling as desired.

When ready, preview the report as an Excel file to ensure it looks as expected.

  1. In the add-in, click the Preview icon on the top toolbar.

    The Preview section opens.

  2. Click Preview as Excel (.xlsx).

Summary sheet in report, with a native Excel PivotTable, variable, and expression

Summary sheet in report, with level, page, chart image, and table.

Next steps

The next step is to upload the template to the application.

After uploading the template, you could:

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!