Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
QlikView Essentials

You're reading from   QlikView Essentials Want to solve your Business Intelligence headaches? Learn how QlikView can help, and discover a powerful yet accessible BI solution that lets you harness your data

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781784397289
Length 166 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Chandraish Sinha Chandraish Sinha
Author Profile Icon Chandraish Sinha
Chandraish Sinha
Arrow right icon
View More author details
Toc

Master calendar


As a best practice, it is always better to keep time-related fields in a separate table outside of the fact table. This is particularly helpful when you want to see all the dates, and not just the dates when specific events occurred. In our case, we should be able to see all the dates, and not just the dates when an order was made, because in real-life scenarios there may be days or months in which no order was made. It is also important to remember that QlikView stores dates as numbers:

  1. Use the same QVW file QlikViewEssentials_Chap4_LinkTable.qvw.

  2. Invoke the script editor. Navigate to the Orders Tab. Go to the load script of Orders and comment the Month field by using //. We will be creating this field in the master calendar.

  3. Create a new tab after the LinkTable tab and name it Master Calendar.

  4. Get min and max dates. Create a new table GetDateRange and load min and max dates from the Facts table. QlikView stores dates as numbers. You can subtract the dates by converting numbers...

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 $19.99/month. Cancel anytime
Banner background image