Book Image

QlikView for Developers

By : Miguel Angel Garcia, Barry Harmsen
Book Image

QlikView for Developers

By: Miguel Angel Garcia, Barry Harmsen

Overview of this book

QlikView is one of the most flexible and powerful Business Intelligence platforms around. If you want to build data into your organization, build it around QlikView. Don't get caught in the gap between data and knowledge – find out how QlikView can help you unlock insights and data potential with ease. Whether you're new to QlikView or want to get up to speed with the features and functionality of QlikView, this book starts at a basic level and delves more deeply to demonstrate how to make QlikView work for you, and make it meet the needs of your organization. Using a real-world use-case to highlight the extensive impact of effective business analytics, this book might well be your silver bullet for success. A superb hands-on guide to get you started by exploring the fundamentals of QlikView before learning how to successfully implement it, technically and strategically. You'll learn valuable tips, tricks, and insightful information on loading different types of data into QlikView, and how to model it effectively. You will also learn how to write useful scripts for QlikView to handle potentially complex data transformations in a way that is simple and elegant. From ensuring consistency and clarity in your data models, to techniques for managing expressions using variables, this book makes sure that your QlikView projects are organized in a way that's most productive for you and key stakeholders.
Table of Contents (24 chapters)
QlikView for Developers
Credits
About the Authors
Acknowledgements
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
Index

Managing file locations and connection strings


In our current example documents, we have always referred to the Data Files folder for our source data. If, for any reason, this folder has to be moved somewhere else, we will have to manually change the source data path in many locations in many files.

Let's follow these steps to create an included script file to set the source data folder in a single location:

  1. Open Notepad (by pressing Windows Key + R, typing in notepad, and pressing Return) or any other text editor.

  2. Enter the following script:

    SET vFolderSourceData = '..\Data Files\';
  3. Save the file to the same folder as your QlikView document and call it Config.qvs.

  4. Close Notepad and return to QlikView's script editor window.

  5. Go to the Include tab and place the cursor on the first line.

  6. Go to Insert | Include Statement and select the Config.qvs file.

We have now created an include file that sets the vFolderSourceData variable to the path of the source data folder.

Note

In a real QlikView environment...