How to add a new Datasource to our Qlikview Application.

   Words by CRM Consultancy

   on 19/04/2017 18:00:00

Qlikview Apps pull data from different locations to build associations in that data and then present the data as a new Dashboard – this article is aimed at providing a step-by-step introduction to how we can get started with Qlikview and writing basic script to read a particular source of data, and then for the script to define which Fields to read into the Qlikview Application.

To do this we can use the following steps:

1. Edit Script - Open the File Menu and click the ‘Edit Script’ option.

2. Script Editor - This opens the Qlikview Script Editor where as develop scripts to read data into the App.

3. New Tab - For a new Datasource we typically want to add a new Tab into the Script so the code for reading the Data is kept separate from other code within the Script. (Separation of Concerns)

To do this we can click the Tab Menu and ‘Add Tab’


After providing a Name for our New Tab, this will add the Tab into the Script for us to add our code into.

4. Connect to a Datasource - There are then various methods we might add as new code for reading Datasources, but to use a simple example, we can connect to a Qlikview Table File.  This is done by clicking the ‘Table File’ option in the Script Editor.


This launches a Wizard where we can select the Qlikview Table File, specify that this is a QVD Table File (as opposed to XML, HTML or other file-based Datasource), and specify a Condition if applicable or simply SELECT all data if not.

At the end of this Wizard, this will then show us the Code that the Wizard is intending to add into our Tab:


Clicking ‘Finish’ then adds this code to our Script and we are ready to go.

5. Edit the Code – now we have code to read the Data back from our Datasource.  However this will initially read ALL the Columns and parse these using the Raw Column Names, which is usually less than ideal, as we may only want certain Named Columns to be available to the Dashboard for easier Development and Design.

To remedy this, we can select all the excess columns brought from the Datasource into the Code, dropdown the Edit Menu and click ‘Comment’ – this comments out the excess fields we may not need or want within our Dashboard.

With our remaining useful fields, we would then typically Alias these fields so they have meaningful Names in our Dashboard – this is done using standard SQL Notation for ‘rawfieldname AS [Formatted Name]’.


6. LOAD – with this code in place, we can click Load for Qlikview to suck the data into our Dashboard. 

Typically we may see an Error here if our Code has a Typo or any malformed script, but otherwise this will pull the data in and get ready for use in the Qlikview Designer.  This will also show us the Number of Lines (i.e. Records) read for each part of our Script, which typically would be each Tab within our Script.



7. Getting Started with the Designer – to get started our initial port of call may be to create a new List Box to act as a Selection in our Dashboard.

This can be done from the Toolbar and then selecting one of our Fields to act as the Selector in the Listbox.


This adds a Selector to our Dashboard to filter the Records we are Reporting on by the User’s Selection.

If we tick the ‘Show Frequency’ and ‘Show Percent’ Checkboxes for the List Box, this also acts to show the % of records that meet that Selection:


This immediately starts giving some use to the Dashboard as the user can see the Ratio or Number of records for each possible Selection.

This concept of associations in the data for different selections is at the heart of Qlikview, and so gets us started to build Interactive Contextual Dashboards in Qlikview.

Next Step?  Getting stuck into the Designer to see how we can present our Dashboard, which will form our next How-to article on Qlikview.

Share this Article

Search Articles

Filter Articles

CRM Tech DocMan

Recent Articles

HOW TO: Manage Your Dynamics 365 Database Size (Video Included) Dynamics 365 Marketing vs ClickDimensions It’s time to pause, reflect and acknowledge a new era of inclusivity and collaboration. Part 2 - How to get the most from a Technology Expert – Asset Management Hub Property & Asset Management Hub Part 1 – Balancing CRM and Asset Management Scopes - Asset Management Hub Creating a Multi-Lingual PowerApps Portal How to Set Up a Microsoft Teams Site Using DocDrive365 Microsoft Teams - Adding a Microsoft Teams URL to a Dynamics Appointment Dynamics 365 Marketing – Customer Voice Survey Not Appearing In Emails? Using SQL Management Studio to connect to the Dynamics DB Calling a Power Platform AI Builder Model via oData How to use DocDrive365 to integrate permissions between Business Units in Dynamics with Sites in SharePoint Getting started with the Power Platform AI Builder. Power Apps Portal Information Hub DocDrive365 Security: Day One - Getting Started with Dynamics to SharePoint Permissions Part 5 - Power Apps Portals: How To Connect Azure B2C With Linked-In Part 4 – Power Apps Portals: Styling Azure B2C for Power Apps Portals The 3 Phases for Using Multi-Select Option Sets in Flow with Microsoft Forms Part 3 – PowerApps Portals: Azure B2C and Power Apps Portals – User Flow for Signup and Signin Part 2 - Power Apps Portals: New Application Registration in Azure B2C for our Power Apps Portal Part 1 – Power Apps Portals: Creating a New Azure AD B2C Tenant The Automation Bot: Launching Contextual Flow from Teams Creating a New Bot for Teams Debugging your Teams Bot using Ngrok
Contact Us

Want expert advice or a demo?

Get in touch now and see how we can help your business grow.

  • Name
  • Email Address
  • Phone Number

Understanding Your Challenges

Our strong understanding of CRM and emerging technologies within the Microsoft environment means we deliver the right solutions for you.

Proven Real-World Solutions

As a leader in the field of Dynamics solutions, our pedigree developing and delivering real-world solutions is unsurpassed.

Long Term Support

We provide support beyond our design, implementation and 'go-live' delivery using Sprints and continual updates to our AppSource apps.

CRMCS | Design by Thinktank Marketing | Citrus-Lime Limited

To improve your experience today and in the future, this site uses cookies. Read our full Privacy Policy & Cookie information here I Understand