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

Extracting data from custom databases


The current version of Qlik Sense does not support the loading of data from custom databases, such as SAP or Salesforce. Nevertheless, it can still be achieved in a few simple steps. The following recipe explains the steps to load data from a SAP database.

Getting ready…

The Custom connector option under Create new connection is not available in the Qlik Sense data load editor. This feature is going to be introduced soon in a forthcoming release of the product.

The following recipe requires you to use another Qlik product named Qlikview in order to generate the extract script that is to be copied and used in the Qlik Sense application. Qlikview is free software that can be downloaded from the Qlik website. The recipe also requires the SAP connector for QlikView to be installed.

How to do it…

Once we install the SAP connector, the RELOADSAPDD.qvw and ScriptBuilder.qvw files are saved on the hard drive.

We will work along with the RELOADSAPDD.qvw file, which is stored at the C:\ProgramData\QlikTech\CustomData\QvSAPConnector\ScriptBuilder location.

In order to extract data from a custom database, such as SAP:

  1. Activate the legacy mode as described in the recipe just prior to this.

  2. Open the Qlikview file and input the SAP credentials to generate the connection string similar to the following:

    CUSTOM CONNECT TO ""Provider=QvSAPConnector.dll;ASHOST=192.168.210.166;SYSNR=00;CLIENT=100;KeepCasing=1;NullDate=1;XUserId=UPJDRIRJJaSMVEVIXSFA;XPassword=IQWOQIRNJbaMXUVMXLMGSEA;"";
  3. Open Qlik Sense. Copy and paste the SAP Connection string from the script editor of the QlikView file to Qlik Sense.

  4. Similarly, one can copy and paste the load script generated for any SAP table in a QlikView file to a Qlik Sense file.

  5. Save and load data.

  6. The data load editor with all the connection strings will appear, as shown in the following:

How it works…

The essence of the recipe is that the custom connections don't work in Qlik Sense, unless it is running in a Legacy mode. The user can copy the script generated in the QlikView file to the Qlik Sense Load script while running the application in the legacy mode, as this script cannot be generated directly in Qlik Sense.

There's more…

Qlik Sense can extract data from any data source that can be loaded by QlikView (such as Salesforce) in practically the same way as it is described in this recipe.

See also…

  • Activating the Legacy Mode in Qlik Sense® desktop