Book Image

Qlik Sense Cookbook

By : Philip Hand, Neeraj Kharpate
Book Image

Qlik Sense Cookbook

By: Philip Hand, Neeraj Kharpate

Overview of this book

<p>This book is an excellent guide for all aspiring Qlik Sense® developers. It will take you through the basics, right through to the use of more advanced functions. With the recipes in this book, you will be empowered to create fully featured desktop applications in Qlik Sense®.</p> <p>Starting with a quick refresher on obtaining data from data files and databases, this book moves on to the more refined features of Qlik Sense®, including visualization, scripting, and set analysis. The tips and tricks provided will help you to overcome challenging situations while developing your applications in Qlik Sense®. This and more will help you to deliver engaging dashboards and reports efficiently.</p> <p>By the end of the book, you will be an expert user of Qlik Sense® and will be able to use its features effectively for business intelligence in an enterprise environment.</p>
Table of Contents (17 chapters)
Qlik Sense Cookbook
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Defining variables in Qlik Sense®


For versions prior to v2.1.1, Qlik Sense does not provide the option to define variables outside the script as you could in the Variable Overview window in Qlikview. With v2.1.1, Qlik has introduced a new variable interface that enlists the existing variables created in the script and also provides the user with the option to create new variables.

Getting ready

For the purpose of this recipe,we will make use of an inline data load which gives the sales information for four countries:

  1. Create a new Qlik Sense application and call it QS_Variables.

  2. Load the following script in the application:

    Sales:
    LOAD * INLINE [
    Country, Sales,COS
    USA, 1000,500
    UK, 2000,1000
    France, 3000,2500
    Germany, 4000,4700
    ];
    
    Let vRedColor=RGB (255, 0, 0);
    Let vSales= 'Sum(Sales)';

How to do it…

  1. Open the QS_Variables application.

  2. Create a new sheet called as Sales and go to the Edit mode for the sheet.

  3. While in the Edit mode, notice that we have a new icon on the lower-left corner. Click on...