You are on page 1of 30

BI 2 Data Warehousing : Data Cubes and OLAP

Dhruv Nath

How is a Data Warehouse Organised ?

Therefore how do we query it ?

Example : DW for a bank : 2 - D matrix

How do we query this ?

Data Cube

How do we query this Data Cube ?

2 -D Slice

A different 2-D Slice

1-D Slice

Thicker Slice

Thicker Slice

Drill down ?

Drill down ?

Roll Up ?

Data Cubes - Facts and Dimensions - disc Can we have multiple facts ? Examples ?

How are snapshots added at the end of each time period ?

Example 2
Query : Show me sales of CocaCola through the Food channel, for the week ending the 24th.
$28.3 Million

Afri Cola

Brand

Coca-Cola
Pepsi Royal Crown

Channel

MM Drug Food 03 10 17 24

Wrangler Cola

Week Ending

Examples from your organisations ?

DW : Typical Analytical Queries


Bank : Get me the total value of credit card transactions in the month, by Geography, by Customer, by Month, from 2008 to 2012 Telecom company : Get me the total minutes of calls made in each quarter, and also the total number of call drops in the quarter, for all States in North India, by Geography , by Customer, by Payment Plan, by Quarter, for the period 2010 to 2012 Car Manufacturer : Get me the Average Sales per day, by Car Model for the Esteem, Swift, Zen, and EECO, by Dealer, by Financing Scheme, by Month, between Jan 2005 and Dec 2011

CRM is for.
Customers Dealers / Distributors Suppliers Employees..

DW of Suppliers
Dimensions
Suppliers Geography Product Time Quantity Supplied Price at which supplied No. of defects Delivery time Delivery delay Discount on quoted price Payment delayed / withheld Complaint by Supplier Complaint by Supplier - resolved

Facts

Possible Queries ?

The Data Warehouse Architecture


Data Cubes

OLTP Databases

Data Marts

Data Warehouse

Data Cubes - Summarise


Data Cubes
1-D, 2-D, 3-D

Can we have n-D Data Cubes ? Yes, but need to represent them differently Facts and Dimensions
Usually multiple facts

Querying
Slice and Dice Drill Down Roll Up APCMIS

OLAP - On Line Analytical Processing ( vs OLTP )

Exercise
Create a Data Warehouse Design for the CRM System of a company that supplies stationery to Offices
Facts ? Dimensions ?

What are the possible Data Marts from this Data Warehouse ?

The Data Warehouse Architecture


Data Cubes Clients

OLTP Databases

Data Marts

Data Warehouse

User Interface

Finally, what does the user see and use ? User Interface

End User Interface


Dashboard APCMIS Qlikview

Products and Vendors


Data Cubes Clients

OLTP Databases

Data Marts

Data Warehouse

DBMS Vendors

Oracle, Microsoft SQL Server, IBM (DB2),..

Products and Vendors


Data Cubes Clients

OLTP Databases

Data Marts

Data Warehouse

BI Tool Vendors Provide everything except the OLTP DBMS and DW. ETL included SAS, Cognos (IBM), Business Objects (SAP), Qlikview..

BI 2 Data Warehousing : Data Cubes and OLAP

Dhruv Nath

You might also like