Preface
The need for Business Intelligence (BI) solutions and data analysis has always existed, and so have different approaches to fulfill this need. Traditional BI software has heavily relied on techniques that have been around and persisted through the decades, but newer technologies have emerged in recent times that have proven to be more flexible and, therefore, more adequate for the evolving environment in which they are used. QlikView is an example of this kind of disruptive technology, a kind of software that changes the rules of the game.
QlikView is different; that's a fact. It's different in an advantageous way. If you have worked with traditional BI software before, it might be necessary to let go of some of the preconceptions you may have regarding how BI solutions are built. If, on the other hand, you are a newcomer to the BI landscape, we will help you get the basics in order for you to get up-to-speed. In any case, rest assured that you are on the right track by having picked QlikView as your tool and this book as your guide.
The good news is the material between these covers has been written in such a way that newcomers, BI professionals experienced in other tools, and even seasoned QlikView practitioners, will find useful. This book will provide you with the knowledge required to understand how QlikView works, and the skills needed to build QlikView documents from start to finish: from loading data to building charts. Even if you have worked with QlikView before, you will find that the exercises presented in each chapter, and the recommended practices we discuss, will help you extend your knowledge and become more proficient with QlikView.
Among other features you will find in this book, some of the most important are:
The book is practical and hands-on. This book is filled with examples that will let you move from theory into practice right away. We support this hands-on experience by providing a full dataset used across the entire book, and around which we build a fully-functional QlikView document that contains a dashboard, various analyses (both basic and complex to build), and reports, using the DAR (Dashboard-Analysis-Reports) approach.
In every chapter, a piece of a final QlikView document is built , which allows you to follow its evolution from start to finish. It also enables us to cover different development challenges that you may encounter in a real-world QlikView project.
We made sure to cover both backend and frontend development, so you will find that all 14 chapters cover different topics, from scripting and data extraction to data modeling, design, charts and expressions, as well as security, and everything in between. We also talk about various best practices related to each of these topics.
All of the examples discussed in the book are complemented with solution files for the reader to follow the exercises and compare his work. The QlikView files we provide are Personal Edition enabled, which means that a purchased QlikView license is not required to open them.
Although the case and story used in the book are built around a fictional company, the data we use in our examples and final application is real. Thanks to the Open Government initiative and the
Bureau of Transportation Statistics of the United States
, which compiles and maintains a complete dataset about airline operations in the US, you will be able to work with real data and build a QlikView application to analyze flights, enplaned passengers, cargo, and many others across multiple dimensions such as carriers, airports, cities, aircraft types, and so on.
Congratulations on taking a step towards learning to develop Business Intelligence applications with QlikView. Are you ready for take off? Qlik On!
What this book covers
Chapter 1, Meet QlikView, introduces QlikView and shows how it can be used to explore data. We will also learn about the technology and components behind QlikView and will be introduced to the case that is used throughout the book: HighCloud Airlines.
Chapter 2, Seeing is Believing, helps us get hands-on with QlikView by building a simple QlikView document. We will learn what dimensions and expressions are in the context of a QlikView document. We will also learn to build simple charts to visualize and aggregate data, and how to design a basic user interface for navigating through the QlikView document.
Chapter 3, Data Sources, will help us learn how to load data from different sources and how to extract data using the built-in wizards. We will also take a closer look at QlikView's proprietary data files.
Chapter 4, Data Modeling, explains which type of data model is best suited for QlikView. We will see which "rules" need to be followed when designing a QlikView data model and will also learn how best to take advantage of the associative data model to make our documents highly dynamic.
Chapter 5, Styling Up, will help us learn how to style our QlikView documents. We will learn about the various document and sheet properties and will use them to manage the visual style of our document. We will also take a closer look at some of the most fundamental objects and learn how we can change their appearance.
Chapter 6, Building Dashboards, introduces us to the three basic types of QlikView users, and how we can best cater to their needs. We will learn about the various charting options that are available in QlikView, and will see how we can add interactivity to our QlikView documents. We will also be introduced to basic calculations.
Chapter 7, Scripting, introduces us to the QlikView scripting language and editor. We will learn about the most important script statements, and how we can use them to manipulate data and control the flow of the script. We will also be introduced to some of the most important operators and functions for dealing with various data types. Finally, we will look at the options for debugging scripts, how to organize and standardize scripts, and how we can reuse our scripts.
Chapter 8, Data Modeling Best Practices, expands on the knowledge about data modeling and scripting we gained in earlier chapters. We will learn how to make sure that data models are consistent and how to work with complex data models and multiple fact tables. We will also learn how to reduce storage requirements for a data set and how to best deal with date and time information.
Chapter 9, Basic Data Transformation, focuses on how to deal with unstructured data and how to transform it for use in our QlikView data model. We will learn about basic data transformation subjects, such as cleansing data and how to restructure pivoted and hierarchical tables for inclusion in the QlikView data model.
Chapter 10, Advanced Expressions, we will learn more about the use of variables. We will also learn how to use conditional functions and how to handle advanced aggregations.
Chapter 11, Set Analysis and Point In Time Reporting, takes a closer look at Set Analysis and will explain how it can be used for Point In Time Reporting. We will also learn about comparative analysis using alternate states.
Chapter 12, Advanced Data Transformation, returns to the topic of data transformation. We will learn about the most commonly used data architectures that can ease QlikView development and administration. Next, we will take a close look at aggregating and sorting data in the data model. In the final part of the chapter, we will learn how to take advantage of some of QlikView's most powerful data transformation capabilities.
Chapter 13, More on Visual Design and User Experience, gives us a closer look at the visual design of our QlikView documents and will learn how to create a consistent user interface. The second part of the chapter introduces us to some additional options for making our documents more interactive, and proactive.
Chapter 14, Security, shows us how to secure our QlikView documents. We will see how to allow only authorized users to open our documents and will learn how we can limit what a user can do and see within our document.
What you need for this book
To use this book, you primarily need the QlikView Desktop software. If you do not yet have this software, Chapter 1, Meet QlikView, explains how to obtain it. With regards to computer requirements, you will need a PC with at least Windows XP (or better), 2 GB of hard disk space, and 2 GB of RAM. A 32-bit machine can be used, but a 64-bit machine is recommended for this book and QlikView development in general.
For best understanding, a general knowledge of Business Intelligence and its terminology is required. Basic understanding of databases and SQL is preferred, but not compulsory for this book.
Who this book is for
This book is aimed at developers and power users who want to learn how to develop Business Intelligence applications with QlikView. Developers who have already been using QlikView for some time may find that this book contains useful tips and best practices to make more effective use of QlikView.
This book only covers QlikView Desktop. Deployments to QlikView Server and Publisher are beyond the scope of this book. The book is not aimed at QlikView Server Administrators.
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: " Import this connection into every QVW via an include
statement."
A block of code is set as follows:
LOAD [%Origin Airport ID], [Origin Airport]; SQL SELECT `%Origin Airport ID`, `Origin Airport` FROM `Origin Airports`;
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "We will now click on Test Connection to make sure the connection is established ".
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.
Reader feedback
Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.
To send us general feedback, simply send an e-mail to <feedback@packtpub.com>
, and mention the book title through the subject of your message.
If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.
Customer support
Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.
Downloading the example code
You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.
Disclaimer
"QlikTech makes no representations or warranties with respect to the accuracy or completeness of the contents of the Book or the QlikView Materials referenced herein and specifically disclaims all warranties, including without limitation warranties of fitness for a particular purpose. The advice and strategies contained in the Book or the QlikView Materials may not be suitable for every situation. QlikTech shall not be liable for any damages, claims, costs, or causes of action, whether known or unknown, arising from the Book."
Errata
Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website, or added to any list of existing errata, under the Errata section of that title.
Piracy
Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.
Please contact us at <copyright@packtpub.com>
with a link to the suspected pirated material.
We appreciate your help in protecting our authors, and our ability to bring you valuable content.
Questions
You can contact us at <questions@packtpub.com>
if you are having a problem with any aspect of the book, and we will do our best to address it.