Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Qlikview Unlocked

You're reading from  Qlikview Unlocked

Product type Book
Published in Nov 2015
Publisher Packt
ISBN-13 9781785285127
Pages 196 pages
Edition 1st Edition
Languages

Table of Contents (16) Chapters

QlikView Unlocked
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Behind Every Successful Project Is a Plan Building the Correct Environment Are You Sitting Comfortably? Be More Productive It's All About Understanding the Data The Right Data Model Pays Dividends Make It Easy on Yourself – Some QlikView Tips and Tricks Improving Chart Performance and Usability To Deployment and Beyond Hidden Image List
Index

Calculations and flags in the script


It's always a good idea to do as much work in the script as possible because the work only needs to be done once when the document is reloaded, not every time the user chooses a particular sheet or object.

Consider this requirement: products with prices between £10.00 and £19.99 need to be shown in a straight table with no other products visible. It would be easy enough to do this as an IF() statement in an expression:

We suppress zero values and hide the column. However, if there are several thousand rows, screen performance could be poor.

It would be better to do the work in the script if we can:

Product:
LOAD [Product Code], 
     [Supplier Product Code], 
     [Supplier No], 
     [Manufacturer Product Code], 
     [Manufacturer No], 
     [Short Description], 
     Kit, 
     Price,
     IF(Price > 9.99 AND Price < 20.00, 1, 0) AS [Check Price]
FROM
[..\QlikView Unlocked Data.xlsx]
(ooxml, embedded labels, table is Product); 

All we need to do now...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}