330 likes | 427 Views
The Multidimensional Model & OLAP (I). Developed by: Dr Eddie Ip Modified by: Dr Arif Ansari. Outline. Introduction OLAP architecture: Multidimensional modeling Hierarchical structure Lab session. Introduction. On-Line-Analytical-Processing (OLAP)
E N D
The Multidimensional Model & OLAP (I) Developed by: Dr Eddie Ip Modified by: Dr Arif Ansari
Outline • Introduction • OLAP architecture: Multidimensional modeling • Hierarchical structure • Lab session
Introduction • On-Line-Analytical-Processing (OLAP) • Process of creating and managing multidimensional enterprise data for analysis & viewing. • DW & OLAP have similar aims/functions but they emerged independently & are positioned differently.
Introduction • DW focus : make data accurate & consistent • OLAP focus: meet end-user’s analytical requirements • OLAP tools are often referred to as BI tools
Introduction • Underlying architecture: multidimensional model & view
OLAP architecture: Multidimensional Model • Make DB • simple • understandable • in line with business view
Multidimensional Model • Think of data as a cube • “We sell products in various markets, and we measure our performance over time.” • Design DB along dimensions -- e.g. Products, Markets, Time
Multidimensional modeling: Examples • Product, market, time = • 3-dimensional cube • But what’s in a cell?
Multdimensional modeling: Examples • Example 1: Car sales data • Dimensions: • make • color • year • What’s in a cell?
Multidimensional modeling: Examples • Example 2 • Customer spending data • Dimensions: • age group • income level • gender
Multidimensional modeling: Examples • Example 3 • Model student final grades in a survey • Dimensions: • gender • time spent • grad/undergrad
Multidimensional modeling • Data can be stored as cubes • Multidimensional database (MDDB) • Historical note: OLAP is coined by Edgar Codd at Arbor Software (pioneered MDDB called Essbase)
Multidimensional modeling • Each dimension has different categories • E.g. product (s/w for word processing, s/w for spreadsheet, s/w for graphics…) • E.g. age group (old, middle, young,…)
Multidimensional modeling • data stored in the “cell” of the cube == instance of a variable • numerical measurement of the business • some vendors use the term measure • additive
Hierarchical structure of dimension • e.g. All product > electronics > office appliances > copiers • dimensional hierarchy may be asymmetric (ragged) or symmetric • Asymmetric : All product > electronic / furniture > .. • Symmetric : year > month > quarter
Hierarchical structure of dimension • Hierarchy is the backbone of aggregating • e.g. aggregate over time, aggregate over products into broad product types • Hierarchy provides structure for navigating the cube • Hierarchy is also useful for managing security • e.g. department can only see its own budget (low level)
Hierarchical structure of dimension • A single dimension may have multiple hierarchies • e.g. All_product > electronics/furniture • All_product > bargain/regular/deluxe
Hierarchical structure of dimension • Going down the hierarchy = getting detailed data • = Drill down = getting the marginal tables • Aggregate at appropriate level = roll up
OLAP as a Business Intelligence Tool • Slice and dice = general term for viewing data from different angles • matrix = a multidimensional cube • cell = a unit in the matrix • More terms in demo
OLAP tool : Functional Requirements • Fast access & calculations • Analytical capabilities (e.g. aggregate at any level & along any dimension) • Flexibility (viewing, analysis, interface with spreadsheet, on-the-fly calculation according to view) • Multiuser support
OLAP • Key is the “A” in OLAP • Query can be performed along any dimension & level • e.g. customer , product • “Total # of Messy Paint Kits sold =?” • “Items Fun Land Toys sold in the last year”
OLAP • Flexibility : e.g. Selection = define a subcube • Sales where Product = Messy Paint Kits and date = 1/97
Summary • OLAP architecture: Multidimensional modeling • Hierarchical structure • Lab session