Book Image

Qlikview Unlocked

Book Image

Qlikview Unlocked

Overview of this book

QlikView Unlocked will provide you with new insights to get the very best from QlikView. This book will help you to develop skills to work with data efficiently. We will cover all the secrets of unleashing the full power of QlikView, which will enable you to make better use of the tool and create better results for future projects. In the course of this book, we will walk you through techniques and best practices that will enable you to be more productive. You will gain quick insights into the tool with the help of short steps called ”keys,” which will help you discover new features of QlikView. Moving on you will learn new techniques for data visualization, scripting, data modeling, and more. This book will then cover best practices to help you establish an efficient system with improved performance. We will also teach you some tricks that will help you speed up development processes, monitor data with dashboards, and so on. By the end of this book, you will have gained beneficial tips, tricks, and techniques to enhance the overall experience of working with QlikView.
Table of Contents (16 chapters)
QlikView Unlocked
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Hidden Image List
Index

Finding min and max


One of the standard pieces of script that tends to be used over and over again is the creation of a Master Calendar table. The first stage of this is to find the date range, from minimum to maximum, from your fact table and create all the possible days in between. In fact, this is even part of the main QlikView Developers' training course. We looked at this in Chapter 5, The Right Data Model Pays Dividends, when we created our Data Island.

The normal way to find the minimum and maximum dates is to use a piece of script such as this:

TempDates:
LOAD Min([Order Date]) as MinDate,
     Max([Order Date]) as MaxDate
Resident SalesOrders;

LET varMinDate=peek('MinDate',0,'TempDates');
LET varMaxDate=peek('MaxDate',0,'TempDates');

DROP Table TempDates;

Here, we created a one record table with the minimum and maximum values as separate fields and then used Peek on the resulting table to get the values.

This is fine if we only have a couple of thousand rows; however, when we talk...