The QlikView Data Model Best Practices
The QlikView Data Model Best Practices
_____________________________________________________ "A best practice is a technique or methodology that, through experience and research, has proven to reliably lead to a desired result." _____________________________________________________
Contents
CONTENTS .................................................................................. 2 WHAT IS THE QLIKVIEW DATA MODEL ................................... 3 THE STAR SCHEMA APPROACH .............................................. 4 MULTIPLE FACT TABLES/MULTIPLE EVENTS ........................ 5
CONCATENATE, One Fact Table Solution ...................................................... 5 Joining Fact Tables Solution ............................................................................ 6 Central Link Table Solution (Event Space)...................................................... 6
AGGREGATION ........................................................................... 7
Within a Star schema model, the event data (transactions) reside in a central Fact Table and the attributes of the event reside in separate dimension tables. The diagram below shows the basic layout DimA: A A1 A2 A3 A4 DimB: B B1 B2 B3 B4 DimC: C C1 C2 C3 C4
This model works well in a simplistic, single event scenario. But as QlikView can handle multiple data sources from many different source systems and files, we have to work with multiple event scenarios, or many fact tables.
Aggregation
Another QlikView feature that improves flexibility and also makes the Link Table topology even more useful is the fact that aggregations can be done both in the Script (pre-defined) and in the front end application (GUI, front end objects). The standard OLAP way of working would require predefined aggregation in the measures to create the cube. The OLAP cube then has to pre-aggregate at every level within the predefined dimensions set up in the OLAP model. In summary, you do not have to apply any aggregation within the creation of the QlikView script if not necessary, any SUM, TOTAL etc can be performed at the GUI development stage. This enables a user to have core detail (transaction values) within an application for detailed analysis.