Book Image

QlikView for Developers Cookbook

By : Stephen Redmond
Book Image

QlikView for Developers Cookbook

By: Stephen Redmond

Overview of this book

QlikView has been around since 1993, but has only really taken off in recent years as a leader in the in-memory BI space and, more recently, in the data discovery area. QlikView features the ability to consolidate relevant data from multiple sources into a single application, as well as an associative data model to allow you to explore the data to a way your brain works, state-of-the-art visualizations, dashboard, analysis and reports, and mobile data access. QlikView for Developers Cookbook builds on your initial training and experiences with QlikView to help you become a better developer. This book features plenty of hands-on examples of many challenging functions. Assuming a basic understanding of QlikView development, this book provides a range of step-by-step exercises to teach you different subjects to help build your QlikView developer expertise. From advanced charting and layout to set analysis; from advanced aggregations through to scripting, performance, and security, this book will cover all the areas that you need to know about. The recipes in this book will give you a lot of the information that you need to become an excellent QlikView developer.
Table of Contents (19 chapters)
QlikView for Developers Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Making all values available to Admins and Managers


If all of the data is not connected to the section access table, the unconnected data will be removed by the reduction process – even for * connected users. The Star is a wildcard that allows the user to be connected to all of the data, but it is not considered for the reduction.

This is not so much of a problem if the security model is fairly static. But if the model is dynamic, then we need to be able to make sure that a user who needs to see all of the data can see it.

Getting ready

Load the following script:

Section Access;
Access:
LOAD * INLINE [
    ACCESS, USERID, PASSWORD, LINK
    ADMIN, admin, admin, *
    USER, manager1, manager1, ALL
    USER, user1, user1, US
    USER, user2, user2, UK
    USER, user3, user3, FR
];

Section Application;
Sales:
Load * Inline [
    CountryCode, Country, Sales
    US, USA, 1000
    UK, United Kingdom, 800
    FR, France, 750
    DE, Germany, 940
];

LinkTable:
Load Distinct
  Upper(CountryCode) as...