BI 2 Data Cubes and OLAP Prof Dhruv Nath
-
Upload
vaibhav-gupta -
Category
Documents
-
view
223 -
download
0
Transcript of BI 2 Data Cubes and OLAP Prof Dhruv Nath
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
1/30
Dhruv Nath
BI 2Data Warehousing : Data
Cubes and OLAP
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
2/30
How is a Data Warehouse Organised ?
Therefore how do we query it ?
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
3/30
Example : DW for a bank : 2 - D matrix
How do we query this ?
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
4/30
How do we query this Data Cube ?
Data
Cube
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
5/30
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
6/30
2 -D Slice
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
7/30
A different 2-D Slice
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
8/30
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
9/30
1-D Slice
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
10/30
Thicker Slice
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
11/30
Thicker Slice
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
12/30
Drill down ?
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
13/30
Drill down ?
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
14/30
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
15/30
Roll Up ?
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
16/30
Data Cubes - Facts and Dimensions - disc
Can we have multiple facts ? Examples ?
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
17/30
How are snapshots added at
the end of each time period ?
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
18/30
BrandAfri Cola
Royal Crown
Pepsi
Coca-Cola
Wrangler Cola
Coca-Cola
24Week Ending
03 10 17
ChannelMM
DrugFood
$28.3 Million
Example 2
Food
24
Query : Show me
sales of Coca-Cola through theFood channel, forthe week endingthe 24th.
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
19/30
Examples from your organisations ?
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
20/30
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, forall 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
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
21/30
CRM is for.
Customers Dealers / Distributors
Suppliers
Employees..
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
22/30
DW of Suppliers Dimensions
Suppliers Geography
Product
Time
Facts
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
Possible Queries ?
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
23/30
Data Cubes
The Data Warehouse Architecture
Data Marts
Data
Warehouse
OLTP
Databases
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
24/30
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
OLAP - On Line Analytical Processing ( vs OLTP )
APCMIS
http://localhost/var/www/apps/conversion/tmp/scratch_1/BI%203a%20APCMIS%20Fact%20Dimension%20Version.ppthttp://localhost/var/www/apps/conversion/tmp/scratch_1/BI%203a%20APCMIS%20Fact%20Dimension%20Version.ppt -
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
25/30
Exercise
Create a Data Warehouse Design for theCRM System of a company that supplies
stationery to Offices
Facts ?
Dimensions ?
What are the possible Data Marts from this
Data Warehouse ?
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
26/30
Clients
User Interface
Data Cubes
The Data Warehouse Architecture
Data Marts
Data
Warehouse
OLTP
Databases
Finally, what does the user see and use ? User Interface
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
27/30
End User Interface
Dashboard APCMIS
Qlikview
http://localhost/var/www/apps/conversion/tmp/scratch_1/BI%203a%20APCMIS%20Fact%20Dimension%20Version.ppthttp://localhost/var/www/apps/conversion/tmp/scratch_1/BI%202a%20APCMIS%20Fact%20Dimension%20Version.ppthttp://us.demo.qlikview.com/QvAJAXZfc/opendoc.htm?document=qvdocs/Sales%20Management%20and%20Customer%20Analysis.qvw&host=Demo11&anonymous=truehttp://us.demo.qlikview.com/QvAJAXZfc/opendoc.htm?document=qvdocs/Sales%20Management%20and%20Customer%20Analysis.qvw&host=Demo11&anonymous=truehttp://localhost/var/www/apps/conversion/tmp/scratch_1/BI%202a%20APCMIS%20Fact%20Dimension%20Version.ppthttp://localhost/var/www/apps/conversion/tmp/scratch_1/BI%203a%20APCMIS%20Fact%20Dimension%20Version.ppt -
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
28/30
ClientsData Cubes
Products and Vendors
Data Marts
Data
Warehouse
OLTP
Databases
DBMS
VendorsOracle, Microsoft SQL Server, IBM (DB2),..
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
29/30
ClientsData Cubes
Products and Vendors
Data Marts
Data
Warehouse
OLTP
Databases
Provide everything except the OLTP DBMS and DW. ETL included
BI Tool
Vendors
SAS, Cognos (IBM), Business Objects (SAP), Qlikview..
-
7/27/2019 BI 2 Data Cubes and OLAP Prof Dhruv Nath
30/30
Dhruv Nath
BI 2Data Warehousing : Data
Cubes and OLAP