Professional Documents
Culture Documents
HND - BI - W9 - Multidimensional Data Models and Analysis
HND - BI - W9 - Multidimensional Data Models and Analysis
HND - BI - W9 - Multidimensional Data Models and Analysis
1
Why Data Model?
2
Raw Data…. Where They Come From ?
3
Raw Data… Why We Can’t Analyze
4
OLAP
5
OLAP Key Words
▪ Dimension
All the members within the domain that can be group/aggregate
together or compared together.
▪ Bike Brand Honda, Yamaha, Suzuki, Kawasaki measurement
can compared together
▪ January ,February ,March can compare each other and
aggregate for 1st Quarter,Four Quarters can aggrigate to Year
and so on
▪ Measurement:
Any quantitative expression or value that analyzing in OLAP
system
▪ Sales value, Sales quantity , Number of registration
6
Data Cube or "Multi-Dimensional" Data Stores
Product
▪ Over the time each and every month add new sheet and
now it is a stack by creating cube
Branch
Product
Month
7
Multi-Dimensional Analysis
8
Example-Nippon Bike Shop
(Not a real data set)
9
Example-Nippon Bike Shop Aggregated Data
(Not a real data set and definitely not accurate)
10
Example-Nippon Bike Shop
11
Data Cubes
12
Multi Dimensional Benefits
13
Multi Dimensional Drawback
14
Multi Dimensional Operation
(Slicing Data Cube)
▪ Slicing Data Cube men
selecting values from one
dimension.
▪ All sales from Kurunegala branch
by brand and by quarter.
▪ All sales of Yamaha motor bikes
by branch and by quarter.
▪ Example query
Select Branch, Quarter, count(*)
From Sales
Where Brand= ‘Yamaha ’
Group by Branch, Quarter
15
Multi Dimensional Operation
(Dicing Data Cube)
▪ Select Values from two or
more dimension.
▪ Honda Bike sales In
Kurunegala.
▪ 1st Quarter sales in Colombo
Branch
▪ Example query
Select Quarter, Count( *)
From Sales
Where Brand= ‘Yamaha’ and Branch =‘Colombo’
Group by Quarter
16
Multi Dimensional Operation
(Drill down data cube)
▪ When knowledge worker required more detail view of data
they can drill down data cube .
▪ For example Nippon Bike shop data cube created for
quarterly sales values but if someone required to access
monthly or daily sales that is also possible if data is
available in data warehouse
▪ Example query
Select Year ,Month,Sum (sales_values)
From sales
Group by Year, Month
17
Multi Dimensional Operation
(Roll up cube)
▪ When knowledge worker required more abstract view of
data they can Roll up or drill up data cube.
▪ After successfully running years If top management in
Nippon Bike shop management required yearly sales
figures. Then they should roll up sales values
▪ Example query
Select Year ,Sum (sales_values)
From sales
Group by Year
18
Multi dimensional Operation
(Pivoting)
▪ Pivoting is the operation that re-organizing dimension to
change the view of data cube.
▪ Pivoting helps to make an effective data visualization by
re arranging X,Y,Z axis
19
Multi dimensional Operation
(Pivoting)
Table Pivoted by quarterly sales by Branch By Brand
20
Multi dimensional Operation
(Pivoting)
Table Pivoted by Branch sales by quarter by brand
Honda Yamaha Suzuki Kawasaki
Kurunegala Q1 150 200 250 600
Q2 50 450 100 200
Q3 200 100 50 250
Q4 450 300 400 150
Colombo Q1 200 100 50 250
Q2 450 300 400 150
Q3 150 200 250 600
Q4 50 450 100 200
Mathara Q1 150 300 400 450
Q2 100 200 250 50
Q3 450 50 200 100
Q4 250 600 150 200
Kandy Q1 450 50 200 100
Q2 250 600 150 200
Q3 150 300 400 450
Q4 100 200 250 50
21
Bibliography
22
Next Week
23