O'Reilly logo

Qlik Sense® Cookbook by Neeraj Kharpate, Philip Hand

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using data with extensions

In the previous recipes in this chapter we created our first Hello World extension, added properties and added custom components to the properties. Now, it's time to get your hands on the data inside your application.

We will go a step further in this recipe and define "Dimensions" and "Measures" in our JavaScript code block. This way we can extract the data from the tables and display it in a chart on our Qlik Sense sheet.

Getting ready

  1. Open Qlik Sense hub and create a new Qlik Sense application.
  2. Load the following script in order to auto-generate some example data:
    Transactions: Load *, mod(TransID,26)+1 AS Period, Pick(Ceil(3*Rand1),'Standard','Premium','Discount') AS ProductType, Pick(Ceil(6*Rand1),'Apple','Orange','Cherry','Plum', ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required