QlikView for Developers Cookbook
()
About this ebook
Read more from Stephen Redmond
Mastering QlikView Rating: 5 out of 5 stars5/5QlikView Server and Publisher Rating: 5 out of 5 stars5/5
Related to QlikView for Developers Cookbook
Related ebooks
Python Business Intelligence Cookbook Rating: 0 out of 5 stars0 ratingsTableau 10 Business Intelligence Cookbook Rating: 0 out of 5 stars0 ratingsTalend Open Studio Cookbook Rating: 2 out of 5 stars2/5Business Intelligence with MicroStrategy Cookbook Rating: 0 out of 5 stars0 ratingsMicrosoft Dynamics AX 2012 Development Cookbook Rating: 0 out of 5 stars0 ratingsPractical Data Analysis Cookbook Rating: 0 out of 5 stars0 ratingsTableau Cookbook – Recipes for Data Visualization Rating: 0 out of 5 stars0 ratingsSQL Server Analysis Services 2012 Cube Development Cookbook Rating: 0 out of 5 stars0 ratingsMicrosoft Tabular Modeling Cookbook Rating: 0 out of 5 stars0 ratingsMDX with Microsoft SQL Server 2016 Analysis Services Cookbook - Third Edition Rating: 0 out of 5 stars0 ratingsR: Recipes for Analysis, Visualization and Machine Learning Rating: 0 out of 5 stars0 ratingsQlikView for Developers Rating: 0 out of 5 stars0 ratingsQlikView 11 for Developers Rating: 0 out of 5 stars0 ratingsQlikview Complete Self-Assessment Guide Rating: 0 out of 5 stars0 ratingsData Analysis Using SQL and Excel Rating: 3 out of 5 stars3/5Learning Qlik® Sense: The Official Guide Rating: 0 out of 5 stars0 ratingsThe Key to Successful Data Migration: Pre-Migration Activities Rating: 0 out of 5 stars0 ratingsPredictive Analytics Using Rattle and Qlik Sense Rating: 0 out of 5 stars0 ratingsCreating Stunning Dashboards with QlikView Rating: 0 out of 5 stars0 ratingsLearning Qlik Sense®: The Official Guide - Second Edition Rating: 5 out of 5 stars5/5Learning Tableau 2019 - Third Edition: Tools for Business Intelligence, data prep, and visual analytics, 3rd Edition Rating: 0 out of 5 stars0 ratingsMastering QlikView Data Visualization Rating: 0 out of 5 stars0 ratingsQlik A Complete Guide - 2021 Edition Rating: 0 out of 5 stars0 ratingsPractitioner's Guide to Operationalizing Data Governance Rating: 0 out of 5 stars0 ratingsTableau 10 Complete Self-Assessment Guide Rating: 0 out of 5 stars0 ratingsSelf-Service AI with Power BI Desktop: Machine Learning Insights for Business Rating: 0 out of 5 stars0 ratingsQlikView Essentials Rating: 0 out of 5 stars0 ratingsIBM Cognos TM1 Developer's Certification guide Rating: 0 out of 5 stars0 ratingsTableau Software Second Edition Rating: 0 out of 5 stars0 ratingsData Insights: New Ways to Visualize and Make Sense of Data Rating: 2 out of 5 stars2/5
Computers For You
Slenderman: Online Obsession, Mental Illness, and the Violent Crime of Two Midwestern Girls Rating: 4 out of 5 stars4/5101 Awesome Builds: Minecraft® Secrets from the World's Greatest Crafters Rating: 4 out of 5 stars4/5CompTIA IT Fundamentals (ITF+) Study Guide: Exam FC0-U61 Rating: 0 out of 5 stars0 ratingsElon Musk Rating: 4 out of 5 stars4/5Standard Deviations: Flawed Assumptions, Tortured Data, and Other Ways to Lie with Statistics Rating: 4 out of 5 stars4/5Procreate for Beginners: Introduction to Procreate for Drawing and Illustrating on the iPad Rating: 0 out of 5 stars0 ratingsThe ChatGPT Millionaire Handbook: Make Money Online With the Power of AI Technology Rating: 0 out of 5 stars0 ratingsMastering ChatGPT: 21 Prompts Templates for Effortless Writing Rating: 5 out of 5 stars5/5The Invisible Rainbow: A History of Electricity and Life Rating: 4 out of 5 stars4/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5The Professional Voiceover Handbook: Voiceover training, #1 Rating: 5 out of 5 stars5/5CompTIA Security+ Practice Questions Rating: 2 out of 5 stars2/5Master Builder Roblox: The Essential Guide Rating: 4 out of 5 stars4/5Alan Turing: The Enigma: The Book That Inspired the Film The Imitation Game - Updated Edition Rating: 4 out of 5 stars4/5Everybody Lies: Big Data, New Data, and What the Internet Can Tell Us About Who We Really Are Rating: 4 out of 5 stars4/5SQL Guide for Microsoft Access: SQL Basics, Fundamental & Queries Exercise Rating: 5 out of 5 stars5/5Artificial Intelligence: The Complete Beginner’s Guide to the Future of A.I. Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5The Basics of Hacking and Penetration Testing: Ethical Hacking and Penetration Testing Made Easy Rating: 4 out of 5 stars4/5I Forced a Bot to Write This Book: A.I. Meets B.S. Rating: 4 out of 5 stars4/5People Skills for Analytical Thinkers Rating: 5 out of 5 stars5/5Dark Aeon: Transhumanism and the War Against Humanity Rating: 5 out of 5 stars5/5Ultimate Guide to Mastering Command Blocks!: Minecraft Keys to Unlocking Secret Commands Rating: 5 out of 5 stars5/5The Insider's Guide to Technical Writing Rating: 0 out of 5 stars0 ratingsThe Hacker Crackdown: Law and Disorder on the Electronic Frontier Rating: 4 out of 5 stars4/5
Reviews for QlikView for Developers Cookbook
0 ratings0 reviews
Book preview
QlikView for Developers Cookbook - Stephen Redmond
Table of Contents
QlikView for Developers Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Instant Updates on New Packt Books
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Charts
Introduction
Creating custom pop-up labels on a bar chart
Getting ready
How to do it…
How it works…
There's more…
Creating a box plot chart for a simple data set
Getting ready
How to do it…
How it works…
There's more…
See also
Using the wizard to create a box plot chart
Getting ready
How to do it…
How it works…
There's more…
See also
Creating a Stephen Few
bullet chart
Getting ready
How to do it…
How it works…
There's more…
See also
Creating a modified bullet chart in a straight table
Getting ready
How to do it…
How it works…
There's more…
See also
Creating a bar chart in a straight table
Getting ready
How to do it…
How it works…
There's more…
See also
Creating a Redmond Aged Debt Profile chart
Getting ready
How to do it…
How it works…
There's more…
See also
Creating a waterfall chart
Getting ready
How to do it…
How it works…
There's more…
Replacing the legend in a line chart with labels on each line
Getting ready
How to do it…
How it works…
There's more…
See also
Creating a secondary dimension in a bar chart
Getting ready
How to do it…
How it works…
There's more…
Creating a line chart with variable width lines
Getting ready
How to do it…
How it works…
There's more…
Brushing parallel coordinates
Getting ready
How to do it…
How it works…
There's more…
See also
Using redundant encoding with a scatter chart
Getting ready
How to do it…
How it works…
There's more…
Staggering labels in a pie chart
Getting ready
How to do it…
How it works…
There's more…
Creating dynamic ad hoc analysis in QlikView
Getting ready
How to do it…
How it works…
There's more…
2. Layout
Introduction
Changing the default object layout options
Getting ready
How to do it…
How it works…
See also
Changing the default selection color scheme
Getting ready
How to do it…
How it works…
There's more…
See also
Modifying the green, white, and gray selection color schemes
Getting ready
How to do it
How it works…
There's more…
See also
Modifying the green, white, and gray selection color schemes in QlikView Server
Getting ready
How to do it…
How it works…
See also
Using containers as an alternative to multiboxes
Getting ready
How to do it…
How it works…
Using the design menus to custom format a cell
Getting ready
How to do it…
How it works…
There's more…
3. Set Analysis
Introduction
Using dollar expansion in Set Analysis to enable from-date and to-date selection
Getting ready
How to do it...
How it works...
Using alternate states with Set Analysis
Getting ready
How to do it...
How it works...
There's more...
See Also
Using Set operators to exclude values from results
Getting ready
How to do it...
How it works...
There's more...
Using Set Analysis with a Date Island
Getting ready
How to do it...
How it works...
There's more...
See Also
Using Sets to avoid key tables
Getting ready
How to do it...
How it works...
There's more...
4. Advanced Aggregations
Introduction
Using TOTAL to calculate the percentage of total and subtotal
Getting ready
How to do it...
How it works...
There's more...
Using AGGR to calculate the percentage of the maximum value
Getting ready
How to do it...
How it works...
There's more...
Using AGGR to resolve a Sum of Rows
issue
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a dynamic AGGR expression for a Group dimension using Dollar Expansion
Getting ready
How to do it...
How it works...
See also
Using RangeMax to return only positive numbers
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a dynamic Part-to-Whole pie chart
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a colored treemap using colormix
Getting ready
How to do it...
How it works...
There's more...
Using RangeSum to calculate a rolling total in a multidimension table
Getting ready
How to do it...
How it works...
There's more...
Showing only the top 3 values in a pivot table
Getting ready
How to do it...
How it works...
There's more...
Creating a Statistical Control Chart using Standard Deviation
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a Moving Range chart
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a control chart using Moving Range
Getting ready
How to do it...
How it works...
There's more...
See also
5. Advanced Coding
Introduction
Extracting QlikView data to a Word report
Getting ready
How to do it…
How it works…
There's more…
See also
Printing reports to PDF using PDFCreator
Getting ready
How to do it…
How it works…
See also
Creating a chart using a macro
Getting ready
How to do it…
How it works…
There's more…
Using VBS functions in charts
Getting ready
How to do it…
How it works…
There's more…
6. Data Modeling
Introduction
Concatenation of fact tables to avoid loops and synthetic keys
Getting ready
How to do it…
How it works...
There's more...
See also
Creating a Key/Link table in QlikView
Getting ready
How to do it…
How it works...
There's more...
See also
7. Extensions
Introduction
Creating a simple HTML extension
Getting ready
How to do it…
How it works…
There's more…
See also
Creating a simple HTML table
Getting ready
How to do it…
How it works…
There's more…
See also
Creating an interactive extension
Getting ready
How to do it…
How it works…
There's more…
See also
Using external libraries with extensions
Getting ready
How to do it…
How it works…
There's more…
See also
8. Useful Functions
Introduction
Handling null in numeric fields or calculations
Getting ready
How to do it…
How it works…
There's more…
See also
Using Dual to handle period name sorting
How to do it…
How it works…
There's more…
See also
Parsing text to numbers and dates
Getting ready
How to do it…
How it works…
There's more…
See also
Calculating Year To Date dynamically
Getting ready
How to do it…
How it works…
There's more…
Labeling a pie chart to replace the legend
Getting ready
How to do it…
How it works…
There's more…
See also
Calculating the lowest or highest value in a range
Getting ready
How to do it…
How it works…
There's more…
Consolidating a date-time value into quarter hourly segments
Getting ready
How to do it…
How it works…
There's more…
Dynamically filtering by From/To dates
Getting ready
How to do it…
How it works…
There's more…
9. Script
Introduction
Creating flags in the script
Getting ready
How to do it...
How it works...
There's more...
Replacing IsNull
Getting ready
How to do it...
How it works...
There's more...
Storing and dropping using a subroutine
Getting ready
How to do it...
How it works...
There's more...
See also
Keeping a trace on things
Getting ready
How to do it...
How it works...
There's more...
See also
Using the AND mode in listboxes
Getting ready
How to do it...
How it works...
There's more...
Using Exists and Keep to limit the data load
Getting ready
How to do it...
How it works...
There's more...
Setting the default display format
Getting ready
How to do it...
How it works...
There's more...
See also
Setting the default sort order
Getting ready
How to do it...
How it works...
There's more...
See also
Matching financial periods to dates
Getting ready
How to do it...
How it works...
There's more...
See also
Handling partial reload in the script
Getting ready
How to do it...
How it works...
There's more...
Using Peek and Previous to calculate against loaded records
Getting ready
How to do it...
How it works...
There's more...
Creating a simple Gantt for a dashboard using Interval Match
Getting ready
How to do it...
How it works...
See also
Reading users from Active Directory
Getting ready
How to do it...
How it works...
Getting a sub-URL using the Table wizard
Getting ready
How to do it...
How it works...
There's more...
Using parameters in Dollar Sign Expansion
Getting ready
How to do it...
How it works...
Removing fields with a wildcard
Getting ready
How to do it...
How it works...
There's more...
Handling multiple subfolders in a script
Getting ready
How to do it...
How it works...
10. Improving Performance
Introduction
Reducing the number of distinct values
Getting ready
How to do it…
How it works…
There's more…
See also
Creating counter fields to avoid Count Distinct
Getting ready
How to do it…
How it works…
There's more…
See also
Creating flag fields to avoid Sum of If and other inefficient expressions
Getting ready
How to do it…
How it works…
There's more…
See also
Denormalizing for performance
Getting ready
How to do it…
How it works…
There's more…
See also
11. Security
Introduction
Section Access gotchas
Getting ready
How to do it…
How it works…
There's more…
See also
Blocking user access to a field using OMIT
Getting ready
How to do it…
How it works…
There's more…
See also
Making all values available to Admins and Managers
Getting ready
How to do it…
How it works…
There's more…
See also
Index
QlikView for Developers Cookbook
QlikView for Developers Cookbook
Copyright © 2013 Packt Publishing
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 publisher, 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. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: June 2013
Production Reference: 1170613
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78217-973-3
www.packtpub.com
Cover Image by Stephen Redmond (<stephen.c.redmond@gmail.com>)
Credits
Author
Stephen Redmond
Reviewers
Steve Dark
Ralf Becher
Miguel Ángel García
Barry Harmsen
Acquisition Editor
Usha Iyer
Lead Technical Editors
Rukmini Iyer
Neeshma Ramakrishnan
Technical Editors
Jalasha D'costa
Saumya Kunder
Lubna Shaikh
Amit Ramadas
Project Coordinator
Apeksha Chitnis
Proofreader
Amy Guest
Indexer
Monica Ajmera Mehta
Production Coordinator
Manu Joseph
Cover Work
Manu Joseph
Foreword
If you can't explain it simply, you do not understand it well enough.
This quote, often attributed to Albert Einstein, very nicely sums up my thoughts on how to best test and improve your (QlikView) skills and knowledge. Starting out as a hands-on practitioner, this lead to me teaching QlikView and writing a blog about it, and culminated in 2012 when Miguel García and I wrote the book QlikView 11 for Developers.
When we finished writing the first draft of the book back in June 2012, our editor asked us to recommend people for technical review. Stephen Redmond was one of the first persons to come to my mind. Anyone who has read his blog or interacted with him can see that he knows QlikView. More importantly though, as I know from experience, he also has no problem voicing a strong opinion. Since we intended for QlikView 11 for Developers to compete on quality and depth of subject, Stephen was an ideal technical reviewer to challenge us. Along with that of the other technical reviewers, Stephen's expert feedback helped ensure that our book achieved the quality and depth that we strived for.
After being published in November 2012, QlikView 11 for Developers quickly became the best rated and best-selling book on QlikView, and has continued to do very well. It has helped novices take their first steps in QlikView, as well as help more experienced developers prepare for their certifications.
Given the success of QlikView 11 for Developers, you can imagine that I was initially skeptical when I learned that our publisher wanted to release another book about QlikView. Why would you need another book?
I was reassured, however, when I learned that Stephen would be taking on the job. Not only because his involvement in our book would ensure minimal overlap between the two titles, but also because I was (and am) confident that he would deliver quality material that appeals to anyone who is looking to further enhance his or her QlikView skills and knowledge. The man who brought us the Redmond Debt Profile Chart
was bound to have many more interesting and innovative recipes up his sleeve.
As a technical reviewer for this book, I got a first-hand look at the materials Stephen was producing and I can tell you that this is quite a different book that will be a valuable addition to your library. Stephen's cookbook allows for casual, bite-sized reads by offering self-contained recipes. It is as if you've just discovered a completely new QlikView blog with dozens of tips and tricks. The recipes will take you from simple-but-effective tricks to sophisticated solutions. Even I have found a few recipes that I cannot wait to serve my clients. Best of all, they are all explained in a simple, straightforward manner, demonstrating that Stephen absolutely understands QlikView very well.
Barry Harmsen
Independent Business Intelligence Consultant, Co-author of QlikView 11 for Developers, and blogger at www.qlikfix.com.
About the Author
Stephen Redmond is CTO of CapricornVentis Limited (http://www.capventis.com), a QlikView Elite Partner. He is the author of several books, including the very popular DevLogix series for SalesLogix developers.
In 2006, after working for many years with CRM systems, reporting and analysis solutions, and data integration, Stephen started working with QlikView. Since then, CapricornVentis have become QlikView's top partner in the UK and the Ireland territory and, with Stephen at the head of the team, have implemented QlikView in a wide variety of enterprises and large business customers across a wide range of sectors from public sector to financial services to large retailers.
Stephen regularly contributes to online forums, including the Qlik Community. His QlikView blog is at http://qliktips.blogspot.com, and you can follow him on Twitter (@stephencredmond), where he tweets about QlikView, BI, data visualization, and technology in general.
I would like to thank my family for their ongoing support. None of what I do would be possible with them.
A big shout out to my colleagues at CapricornVentis, who are a great team to work with.
A special thanks to all of the customers that I have worked with implementing QlikView. It is your business issues that have inspired me to create the solutions that occupy these pages.
About the Reviewers
For 10 years, Steve Dark was a SQL Server / MS ASP developer building web based reporting solutions, until he was shown a demo of QlikView. Soon after this revelation, Steve left his previous employer to set up Quick Intelligence – a consultancy focusing entirely on QlikView and delivering business