Creating text and images

Images in Qlik Sense for desktop are stored in the following location by default, C:Users<*your own user folder*>DocumentsQlikSenseContentDefault

Once images have been added to the folder they are automatically made available in Qlik Sense. To add images to your dashboard follow these steps.

Getting ready

For this recipe, we will make use on inline data load which gives us sales information. Load the following code into your Qlik Sense application:

  SalesData:
  LOAD * INLINE [
      ID, Sales, Quantity, Cost
      1, 15000, 50, 11000
      2, 30000, 100, 25000
];

How to do it…

Adding Images

  1. Place your desired image file into the folder C:Users<*your own user folder*>My DocumentsQlikSenseContentDefault.
  2. Add the Text & Image object from the Assets panel to the content area.
  3. With the Text & Image object selected, click on Adding Images to add text and measures.
  4. The design bar will appear, click on the Insert an image button in the far right, as shown in the following:
    Adding Images
  5. Select and insert the desired image from the default folder.
  6. One can edit the sizing options of the image without clicking on the image button in the design bar as shown in the preceding step. To do this, go to the properties of the Text & Image object and set the same image as a background, using this method now gives you access to size options as shown in the following screenshot:
    Adding Images

Adding Text

  1. Add another Text & Image object from the Assets panel to the content area.
  2. If you double click on the object in the content page you can immediately start typing the text. You will see some basic formatting options above the object, as seen in the following:
    Adding Text
  3. Type the following into the text box Sales =.
  4. Next, from the properties pane under Data add the following measure:
    SUM(Sales) and label it 'Sales'.
  5. From the Number formatting drop-down menu select Number and from the next drop-down below select the top option with no decimal places (for example 1,000).
  6. You can repeat the process using more text objects and different expressions if you like. Multiple measures can be added to the same object or they can be separated out as shown in the following examples:
    Adding Text
  7. An example of text boxes and images is in the following:
    Adding Text

How it works…

Adding text or images to a dashboard can be the key to help users learn more about what they are looking at, not just the company branding.

In the preceding example, we have added a metric into the text box. Normally, we suggest using the KPI object in these instances.

However, text boxes are essential if you wish to add a narrative beyond a single number if all you are trying to do is show one number, using a text box does give the benefit of horizontal labeling. For example the "date of the last reload".

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset