Hello QlikView Ebook Preview
Hello QlikView Ebook Preview
com
Hello QlikView! A Beginners Guide to QlikView by Anamica Ramkhelawan, Jason Atkinson and Luca Fracassi
Disclaimer page
This book and its authors have no affiliation with QlikTech.
All rights reserved. No part of this book may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the authors, except in the case of brief quotations embedded in
critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy
of the information presented. However, the information contained in this book is
sold without warranty, either express or implied.
The authors, dealers and distributors will not be held liable for any damages
caused or alleged to be caused directly or indirectly by this book.
The authors have endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of
capitals. However, the authors cannot guarantee the accuracy of this information.
Available on QVApps.com
1
Hello QlikView! A Beginners Guide to QlikView by Anamica Ramkhelawan, Jason Atkinson and Luca Fracassi
Available on QVApps.com
5
Hello QlikView! A Beginners Guide to QlikView by Anamica Ramkhelawan, Jason Atkinson and Luca Fracassi
EXPRESSIONS ..................................................................................................................................37
ADDING MORE EXPRESSIONS..........................................................................................................41
GROUPS...........................................................................................................................................46
SEARCH OBJECT .............................................................................................................................51
CONCLUSION .................................................................................................................................54
CHAPTER II LOADING DATA FROM DIFFERENT DATA SOURCES........................56
FIRST STEP CREATE NEW QV APPLICATION ...........................................................................57
LOCATION OF SOURCE FILES ...........................................................................................................57
LOADING ACCESS DB.....................................................................................................................58
LOADING DATA ..............................................................................................................................68
RELOAD VS DEBUG (IE. LIMITED LOAD FOR TESTING SCRIPT AND TABLE JOINS)...........................69
LOADING EXCEL FILE .....................................................................................................................73
LOADING TEXT FILE .......................................................................................................................84
LOADING IN-LINE TABLE ...............................................................................................................93
CONCLUSION ...............................................................................................................................101
LOAD SCRIPT LANGUAGE & COMMANDS .................................................................................102
SCRIPT EXECUTION.......................................................................................................................102
HOW TO SHOW COMMENTS (COMMENT AND UNCOMMENT FEATURE) .........................................103
LINKING TABLES ...........................................................................................................................106
QUALIFY/UNQUALIFY STATEMENT ..............................................................................................110
CALCULATIONS IN THE SCRIPT ..................................................................................................119
NORMALIZING OF DATES ...........................................................................................................123
MAPPING LOAD ...........................................................................................................................125
GENERATING DATA IN THE QV SCRIPT ....................................................................................129
INCLUDE STATEMENT ...................................................................................................................129
RESIDENT TABLES ........................................................................................................................133
CROSSTABLES ..............................................................................................................................136
CONCLUSION ...............................................................................................................................147
CHAPTER III: ADVANCED SCRIPTING.............................................................................149
CONDITION ON A FIELD IN A TABLE (IF)....................................................................................149
Available on QVApps.com
6
Hello QlikView! A Beginners Guide to QlikView by Anamica Ramkhelawan, Jason Atkinson and Luca Fracassi
Available on QVApps.com
7
Hello QlikView! A Beginners Guide to QlikView by Anamica Ramkhelawan, Jason Atkinson and Luca Fracassi
VARIABLES ..................................................................................................................................255
LINKED OBJECTS ........................................................................................................................258
CONVEYING MESSAGE TO YOUR AUDIENCE ..............................................................................260
CONCLUSION ...............................................................................................................................265
CHAPTER V: EXPERT USER SET-ANALYSIS ...............................................................267
WHAT IS A SET-ANALYSIS? ........................................................................................................267
HOW TO CREATE A SET-ANALYSIS? ..........................................................................................268
CURRENT SELECTION IN A SET-ANALYSIS .................................................................................272
HOW TO USE EXCLUDE AND SEARCH IN A SET ANALYSIS? .......................................................275
WILDCARDS .................................................................................................................................277
BOOKMARKS AS PART OF YOUR SET ANALYSIS ........................................................................280
EXPERT USER: TIPS & TRICKS ..................................................................................................285
WORD OF CAUTION USING A SET ANALYSIS..............................................................................287
SUGGESTED LINKS ................................................................................................................288
Available on QVApps.com
8
Hello QlikView! A Beginners Guide to QlikView by Anamica Ramkhelawan, Jason Atkinson and Luca Fracassi
Available on QVApps.com
14
Hello QlikView! A Beginners Guide to QlikView by Anamica Ramkhelawan, Jason Atkinson and Luca Fracassi
Its a simple startup page. The most interesting part is at the bottom. Scrolling
down you will find quite a few examples of QlikView applications. These apps
are an excellent start for you to begin to explore what you can do with QlikView.
Available on QVApps.com
15
Hello QlikView! A Beginners Guide to QlikView by Anamica Ramkhelawan, Jason Atkinson and Luca Fracassi
Once you will become more proficient with QlikView development, they will
also become a very good source from where to borrow some code. We wont be
analyzing those examples here, but we strongly suggest you to have a look at
them.
On the left side of the startup page you will find some navigation links. Feel free
to explore them, but they are wont be needed in these first steps. They will
become more useful once you will have spent more time on QlikView and built
some apps. The only one that will probably be useful immediately is the last one,
Resources, which contains some quick links toward the QlikView Community
and the QlikView site.
Available on QVApps.com
16
Hello QlikView! A Beginners Guide to QlikView by Anamica Ramkhelawan, Jason Atkinson and Luca Fracassi
Step 1
You will be greeted by the following wizard:
This wizard will help us loading some data from an Excel file that we have
prepared for this exercise.
Lets click on the Browse button and lets navigate on the D drive where you
should have installed our Hello QlikView directory (or another location if you
Available on QVApps.com
17
Hello QlikView! A Beginners Guide to QlikView by Anamica Ramkhelawan, Jason Atkinson and Luca Fracassi
Available on QVApps.com
55
Hello QlikView! A Beginners Guide to QlikView by Anamica Ramkhelawan, Jason Atkinson and Luca Fracassi
MS Access Database
Excel
Text file
In-Line table
The data sources are based on the Northwind MS Access database which is the
example database supplied with MS Access.
All the source files used in the next chapter can be found in the data package you
received when you purchased the book. The files should be located in the Hello
QlikView directory (or another location if you chose to install the package on a
different one).
Just follow the instructions contained in the Readme.txt file. At the end of the
installation you will have created a folder named Hello QlikView on your C or D
drive.
Available on QVApps.com
56
Hello QlikView! A Beginners Guide to QlikView by Anamica Ramkhelawan, Jason Atkinson and Luca Fracassi
directory as the Hello QlikView developed in the previous chapter and name the
new file QV Application.qvw. The directory data contains all the source files
required for this chapter.
Available on QVApps.com
57
Hello QlikView! A Beginners Guide to QlikView by Anamica Ramkhelawan, Jason Atkinson and Luca Fracassi
Loading Access DB
Click on the Edit Script button or via the menu File->Edit Script
At the bottom of the Edit Script dialog, you see the following section:
In the Database drop down box, select OLE DB. Also tick on Relative Paths.
This indicates that the data sources are located in the directory relative to the
location of the Qlikview application. Click on the Connect button.
Available on QVApps.com
58
Hello QlikView! A Beginners Guide to QlikView by Anamica Ramkhelawan, Jason Atkinson and Luca Fracassi
Available on QVApps.com
59
Hello QlikView! A Beginners Guide to QlikView by Anamica Ramkhelawan, Jason Atkinson and Luca Fracassi
Available on QVApps.com
161
Hello QlikView! A Beginners Guide to QlikView by Anamica Ramkhelawan, Jason Atkinson and Luca Fracassi
Sheets are the basis of the front-end design, the canvas on which the QlikView
front-end designer can start the design of a dashboard. You can add a sheet or
move the order of your sheets with the short-cuts on the design toolbar:
Available on QVApps.com
162
Hello QlikView! A Beginners Guide to QlikView by Anamica Ramkhelawan, Jason Atkinson and Luca Fracassi
Before we start designing the front-end, lets add the design toolbar so we can
use some of the shortcuts when designing the front-end.
Available on QVApps.com
163
Hello QlikView! A Beginners Guide to QlikView by Anamica Ramkhelawan, Jason Atkinson and Luca Fracassi
Available on QVApps.com
164
Hello QlikView! A Beginners Guide to QlikView by Anamica Ramkhelawan, Jason Atkinson and Luca Fracassi
General Properties
All objects have a general set of properties, which are relatively similar per type
of object. These are explained below. We will go into more detail per object in the
next paragraphs.
Title
Promote
Demote
Object ID
For the examples below we will use the file you created in the Hello QlikView
chapter. By using this example we will guide you through the properties of the
different objects.
Available on QVApps.com
165