Book Image

QlikView Unlocked

By : Andrew Dove, Roger Stone
Book Image

QlikView Unlocked

By: Andrew Dove, Roger Stone

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
About the Authors
About the Reviewers
Hidden Image List

Reusing chart expressions

We have mentioned this previously. If you need to do repeated calculations, it is better to do these in the script and create extra fields there. However, there are times when this may not be possible. One way that would appear to solve this issue when using a Chart object is to use a previously calculated Label expression in other expressions.

On the surface, this would appear to be more efficient, and it certainly makes the script easier to read; in practice, there is no speed advantage, and in most tests, it works slightly more slowly. It is, therefore, more efficient to duplicate this part of the expression again.

Have a look at this simple example:

Here, to show the TAX figure, we will use the following expression:

However, it would be more efficient to use this expression instead:

=Sum([Line Qty] * Price) * 0.2