Beruflich Dokumente
Kultur Dokumente
2007
Robert
45-875
BI Tools
and T. Monroe
2007
Robert
45-875
BI Tools
and T. Monroe
2007
Robert
45-875
BI Tools
and T. Monroe
2007
Robert
45-875
BI Tools
and T. Monroe
2007
Robert
45-875
BI Tools
and T. Monroe
OLAP Sweet-Spot
2007
Robert
45-875
BI Tools
and T. Monroe
2007
Robert
45-875
BI Tools
and T. Monroe
Performance
Complexity
Exploration
Presentation
Difficulty in dealing with hierarchies
Difficult or impossible to specify some desired queries
2007
Robert
45-875
BI Tools
and T. Monroe
2007
Robert
45-875
BI Tools
and T. Monroe
Reconcile Data
Derive
Data
OLAP
Tools
An
ze
y
l
a
OLAP
Cube
Diagram Source: Hoffer, Prescott, McFadden, Modern Database Management, 7th ed.
Carnegie Mellon University
2007
Robert
45-875
BI Tools
and T. Monroe
2007
Robert
45-875
BI Tools
and T. Monroe
2007
Robert
45-875
BI Tools
and T. Monroe
2007
Robert
45-875
BI Tools
and T. Monroe
Period (dimension)
Store (dimension)
Sales
(fact)
th
Diagram
Source:
Hoffer,
Prescott,
McFadden,
Modern
Database
Management,
ed.
Diagram
Source:
Hoffer,
Prescott,
McFadden,
Modern
Database
Management,
7th7ed.
2007
Robert
45-875
BI Tools
and T. Monroe
2007
Robert
45-875
BI Tools
and T. Monroe
th
Diagram
Source:
Hoffer,
Prescott,
McFadden,
Modern
Database
Management,
ed.
Diagram
Source:
Hoffer,
Prescott,
McFadden,
Modern
Database
Management,
7th7ed.
2007
Robert
45-875
BI Tools
and T. Monroe
Conformed Dimensions
When dimensions are shared across multiple fact tables
they must be conformed dimensions
Conformed dimensions
One or more dimension tables associated with two or more
fact tables for which the dimension tables have the same
business meaning and primary key with each fact table
2007
Robert
45-875
BI Tools
and T. Monroe
Dimension
Store Sales Data for 2004
Store
Gross Sales
Quota
Profits
Chicago
$3,250,000
$2,750,000
$624,352
+ $500,000
New York
$4,500,000
$3,550,000
$100,000
+ $950,000
Pittsburgh
$1,600,000
$1,700,000
$250,000
- $100,000
Measures
Carnegie Mellon University
2007
Robert
45-875
BI Tools
and T. Monroe
Dimensions
Store Sales Data 2004-2007
Store
2004
2005
2006
2007
Chicago
$3,250,000
$3,500,000
$3,000,000
$3,900,000
New York
$4,500,000
$4,350,000
$5,100,000
$5,450,000
Pittsburgh
$1,600,000
$1,700,000
$1,800,000
$1,650,000
Measures
Carnegie Mellon University
2007
Robert
45-875
BI Tools
and T. Monroe
th
Diagram
Source:
Hoffer,
Prescott,
McFadden,
Modern
Database
Management,
ed.
Diagram
Source:
Hoffer,
Prescott,
McFadden,
Modern
Database
Management,
7th7ed.
2007
Robert
45-875
BI Tools
and T. Monroe
Dimension Hierarchies
Dimension tables are represented as cube dimensions
Cube dimensions use levels to represent hierarchies
Each sub-level subdivides the parent level with finer granularity
Dimension: Organization
Levels Company :: Division :: Department :: Employee
2007
Robert
45-875
BI Tools
and T. Monroe
Measures
Measures represent the interesting data at the
intersection of different dimensions
There is a space for a measure at every intersection of
every level of every dimension
Base facts are stored in the intersections of lowest-level
dimensions (either simple or calculated measures)
Aggregate or computed values are stored at the intersections
of where all of the dimensions are not at the lowest level
(aggregate values must be calculated measures)
Carnegie Mellon University
2007
Robert
45-875
BI Tools
and T. Monroe
Exercise:
Identify three measures of interest for a cube that tracks sales data
Be sure to identify numeric value tracked and aggregation function
Definition source: Pedersen and Jensen, Multidimensional Database Technology, IEEE Computer 12/01
Carnegie Mellon University
2007
Robert
45-875
BI Tools
and T. Monroe
2007
Robert
45-875
BI Tools
and T. Monroe
Dimensions Examples
What dimensions are available in the regional employee
turnover example?
Are there any important dimensions missing that you might want
to use for an analysis if you were a governmental official trying
to improve the employment outlook in your region?
2007
Robert
45-875
BI Tools
and T. Monroe
Analytics
Analytics are specific analyses that can be performed
on an OLAP cube
Simple pre-defined analytics (sums, counts, percentages)
Complex pre-canned analytics defined as part of the cube
model/build
Ad-hoc exploration
Examples:
Actual sales vs. quota by sales region
Supplier count by commodity category by division
Deviation from contracted pricing by supplier, commodity
category, and division over the previous 3 years
Examples of analytics related to sourcing or procurement?
Carnegie Mellon University
2007
Robert
45-875
BI Tools
and T. Monroe
Analytics Examples
Revenue cube analytics
Automobile traffic analytics
Marketing dynamics cube (multiple slices preset)
2007
Robert
45-875
BI Tools
and T. Monroe
Drilling Down
2007
Robert
45-875
BI Tools
and T. Monroe
Slicing
The slicing operation selects specific values for one or more
dimensions of a cube and renders measures for those dimensions
in a two-dimensional table
Diagram Source: Hoffer, Prescott, McFadden, Modern Database Management, 7th ed.
Carnegie Mellon University
2007
Robert
45-875
BI Tools
and T. Monroe
Filtering
Filtering reduces the elements included in a calculation
Filtering can cross multiple slices
Example: filter previous results to only show February, April, May
th
Diagram
Source:
Hoffer,
Prescott,
McFadden,
Modern
Database
Management,
ed.
Diagram
Source:
Hoffer,
Prescott,
McFadden,
Modern
Database
Management,
7th7ed.
2007
Robert
45-875
BI Tools
and T. Monroe
In-Class Exercise
Open the Contour Cubes Automobile Traffic sample
Which intersection and day in London has the most
overutilization of the roads?
Which intersection has the worst overutilization of
roads across all of the days?
Which intersection has the highest overall hourly traffic
flow?
2007
Robert
45-875
BI Tools
and T. Monroe
Pivoting Data
OLAP tools generally let
you pivot dimensions
This involves switching
which dimensions are
displayed horizontally and
which are displayed
vertically
1997
1998
1999
2000
Chicago
$3.25
$3.5
$3.0
$3.9
NY
$4.5
$4.35
$5.1
$5.45
Pgh
$1.6
$1.7
$1.8
$1.65
Pivot
Annual Sales, By Store 97 00 ($ Millions)
Year
Chicago
NY
PGH
1997
$3.25
$4.5
$1.6
1998
$3.5
$4.35
$1.7
1999
$3.0
$5.1
$1.8
2000
$3.9
$5.45
$1.65
2007
Robert
45-875
BI Tools
and T. Monroe
Modeling Hierarchies
Dimension tables frequently model hierarchies
Example:
Customers dimension stores data about your customers
You may sell to several divisions of a single company
You want to be able to analyze sales to the individual divisions and also
capture rolled-up values for the parent company
2007
Robert
45-875
BI Tools
and T. Monroe
Customer_Key
Name
Address
Type
<null>
C000001
ABC Automotive
Dealer
C000001
C000002
Sales
C000001
C000003
ABC Repair
Service
C000002
C000004
Sales
C000002
C000005
Sales
<null>
C000006
5432 Maple Ln
Dealer
2007
Robert
45-875
BI Tools
and T. Monroe
CityName
StateID
StateName
TimeZone
45
Little Rock
Arkansas
Central
263
Denver
15
Colorado
Mountain
423
Aspen
15
Colorado
Mountain
522
Pittsburgh
36
Pennsylvania
Eastern
771
Philadelphia
36
Pennsylvania
Eastern
2007
Robert
45-875
BI Tools
and T. Monroe
Wrap Up
2007
Robert
45-875
BI Tools
and T. Monroe
2007
Robert
45-875
BI Tools
and T. Monroe
2007
Robert
45-875
BI Tools
and T. Monroe