Early Access: The content on this website is provided for informational purposes only in connection with pre-General Availability Qlik Products.
All content is subject to change and is provided without warranty.
Skip to main content Skip to complementary content

Example: Building a sheet

This example shows you how to quickly build a sheet. If you want to follow along to replicate the example, the base app and data used are available from the business logic tutorial. For the business logic tutorial, see Tutorial – Customizing how Insight Advisor interprets data.

The sheet edit mode allows you to quickly develop useful visualizations. When you create a sheet, you should have an idea of the kinds of information you want to see. In this case, from the Tutorial - Business logic app we want to create a sheet that lets us exploration sales by different points of time. This sheet should let us see: 

  • A geographic representation of sales by country and city.

  • Gross profits by sales office.

  • Employee sales figures.

  • The breakdown of specific products and categories.

  • A filter so users can filter data by year, quarter, month, and week.

Example sheet

Creating the first visualization

For the first visualization, we will make a bar chart initially using the autochart to see a recommendation before changing the recommendation to a bar chart.

  1. In the Tutorial - Business logic app, create a new sheet.

  2. From Assets, drag and drop SalesOffice under Data as a dimension.

  3. From Assets, drag and drop Gross Profit as a Data as a measure.

    First visualization

  4. Under Visualization, select Horizontal grouped bar chat.

  5. Under Presentation, click Sorting and click By dimension.

    Editing the visualization

Adding a map

With the bar chart made, we can next make a map that visualizes both countries and cities.

  1. Click to add another visualization in the row.

  2. Under visualization, select Map.

  3. Click Open advanced properties.

  4. Click LayersAdd layer.

  5. Select Area layer.

  6. Under Dimensions, click Add and a select Country.

  7. Under Colors, select Custom, select By measure, and color by Avg(Sales).

  8. Click to return to Layers.

  9. Click Add layer and select Point layer.

  10. Under Dimensions, click Add and select City.

  11. Under Colors, select Custom, select By measure, and color by Sum(Sales).

  12. Under Color scheme, select Diverging classes.

    Sheet with map

Adding a filter pane and rearranging the row

Next, we will add a filter pane so we can explore the data in our visualizations by specific periods of time. We will also rearrange our row of visualizations.

  1. Click to add another visualization to the row.

  2. Under Visualizations, click and select Filter pane.

  3. From Assets, click OrderDate.

  4. Drag and drop the following under Data in Properties:

    • Year

    • Quarter

    • Month

    • Week

  5. On the left side of the filter pane, click and drag on the filter pane to resize it.

    Adding a filter pane

  6. Click on the map visualization and drag it to the left of the bar chart.

Adding a new row with a table

We will add a new row of visualizations beneath the current row, starting with a table.

Filtered table

  1. Click beneath this row to add a visualization in a new row.

  2. Under Visualization, select Table.

  3. From Assets, drag and drop the following as dimensions:

    • EmployeeName

    • SalesOffice

  4. From Assets, drag and drop Sales to create the following measures:

    • Avg(Sales)

    • Sum(Sales)

  5. From Assets, drag and drop Sales onto Filters.

  6. Select Condition as the filter type.

  7. Select Compare.

  8. Under condition, select > and Fixed value.

  9. Under Greater than, enter 0.

Adding a treemap

Now, we will add a treemap, so we can explore both our product categories but also the products within those categories.

New treemap

  1. Click to add another visualization to the row.

  2. Under Visualization, select Treemap.

  3. From Assets, drag and drop CategoryName under Rectangle (Dimensions).

  4. From Assets, drag and drop ProductName under Rectangle (Dimensions).

  5. From Assets, drag and drop Gross Profits under Size (Measures).

  6. On the left side of the filter pane, click and drag on the filter pane to resize it.

Changing measure formatting in advanced options

With the chartscreated, we can move on to some finer adjustments. We will start by changing how sales are displayed in the table.

Example sheet in advanced edit mode

  1. Click Advanced options.

  2. Select the table.

  3. In the properties panel, click Data.

  4. Select Avg Sales

  5. Under Number formatting, select Money.

  6. Under Format pattern, enter $ #,##0.00;-$ #,##0.00.

  7. Select Sum Sales.

  8. Under Number formatting, select Money.

  9. Under Format pattern, enter $ #,##0.00;-$ #,##0.00.

Changing dimension labels in the filter pane

By default, our filter pane shows the dimension names. We can adjust these to just show the time period rather than the full dimension name.

Filter pane with adjusted dimension titles

  1. In Advanced options, select the filter pane.

  2. Under Data, select OrderDate.autoCalendar.Year.

  3. Under Title, enter Year.

  4. Under Data, select OrderDate.autoCalendar.Quarter.

  5. Under Title, enter Quarter.

  6. Under Data, select OrderDate.autoCalendar.Month.

  7. Under Title, enter Month.

  8. Under Data, select OrderDate.autoCalendar.Week.

  9. Under Title, enter Week.

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 – let us know how we can improve!