Professional Documents
Culture Documents
Dimension Process: Chapter 4. Building Data Warehouse and Integrating Data
Dimension Process: Chapter 4. Building Data Warehouse and Integrating Data
Date
Product
Employee
Vendor
ShipMethod
Dimension
Process
Issues Purchase Requisition X X X
Receives Quotation X X X
Issues Purchase Order X X X
Receives Goods X X X X X
Receives Invoice X X
Returns to Vendor X X X X
Sends Payment X X X
Table 4.1 Bus Matrix for purchasing module
By analyzing the Bus Matrix table above, we learn that the purchase module
interacts with 5 common Dimensions tables such as date, product, vendor, ship method,
and employee. We will detail the data source to build these Dimension tables further in
this chapter.
4.1.2. Master Data
Master data is data used to build Dimension tables in the Data Warehouse,
including tables:
No Objects Description
.
1 Product Products information.
2 ShipMethod Information about shipment methods.
3 Vendor Suppliers information.
4 Address Employees and clients address information.
5 StateProvince Cities information.
6 Employee Employees specific information.
7 Person Employees' and clients' information.
8 EmailAddress Employees' and clients' email information.
Table 4.2 Master data table
AdventureWorks2014 AdventureWorksDW
Data Type
Table Column Table Column
DimProduct ProductKey Int
Product ProductID ProductID Int
Nvarchar(5
ProductName ProductName
0)
Nvarchar(2
ProductNumber ProductNumber
5)
Nvarchar(1
Color Color
5)
SafetyStockLeve
SafetyStockLevel Smallint
l
ReorderPoint ReorderPoint Smallint
StandardCost StandardCost Money
ListPrice ListPrice Money
Nvarchar(5
Size Size
)
Decimal(8,
Weight Weight
2)
Class Class Nchar(2)
Style Style Nchar(2)
ShipMethodKey Int
ShipMethodID ShipMethodID Int
DimShipMeth Nvarchar(5
Name Name
ShipMethod od 0)
ShipBase ShipBase Money
ShipRate ShipRate Money
VendorKey Int
VendorID VendorID Int
Nvarchar(5
Name VendorName
0)
Vendor
PreferredVendor PreferredVendorS
Bit
Status tatus
CreditRating CreditRating Tinyint
DimVendor Nvarchar(6
AddressLine1 AddressLine1
0)
Nvarchar(6
Address AddressLine2 AddressLine2
0)
Nvarchar(3
City City
0)
Nvarchar(5
StateProvince Name StateName
0)
DimEmployee EmployeeKey Int
BusinessEntityID BusinessEntityID Int
Nvarchar(8
JobTitle JobTitle
Employee )
BirthDate BirthDate Int
Gender Gender Nchar(1)
HireDate HireDate Int
Nvarchar(8
Title Title
)
Nvarchar(5
FirstName FirstName
0)
Person
Nvarchar(5
MiddleName MiddleName
0)
Nvarchar(5
LastName LastName
0)
Nvarchar(6
AddressLine1 AddressLine1
0)
Nvarchar(6
Address AddressLine2 AddressLine2
0)
Nvarchar(3
City City
0)
Nvarchar(5
EmailAddress EmailAddress EmailAddress
0)
FactProductVend
Int
orKey
ProductID ProductKey Int
VendorID VendorKey Int
AvarageLeadTim AvarageLeadTim
Int
e e
StandardPrice FactProductVe StandardPrice Money
ProductVendor
LastReceiptCost ndor LastReceiptCost Money
LastReceiptDate LastReceiptDate Int
MinOrderQty MinOrderQty Int
MaxOrderQty MaxOrderQty Int
OnOrderQty OnOrderQty Int
Nvarchar(5
UnitMeasure Name Name
0)
FactPurchase FactPurchaseKey Int
PurchaseOrderH Status Status Tinyint
EmployeeID EmployeeKey Int
VendorID VendorKey Int
ShipMethodID ShipMethodKey Int
OrderDate OrderDate Int
eader
ShipDate ShipDate Int
Freight Freight Money
ProductID ProductKey Int
LineTotal LineTotal Money
Numeric(2
Tax Tax
1,5)
OrderQty OrderQty Smallint
Decimal(8,
PurchaseOrderD ReceivedQty ReceivedQty
2)
etail Decimal(8,
RejectedQty RejectedQty
2)
Decimal(9,
StockedQty StockedQty
2)
UnitPrice UnitPrice Money
DueDate DueDate Int
Table 4.4 Describe data mapping
Dim_Vendor
VendorKey
BusinessEntityID
VendorName
PreferredVendorStatus
CreditRating
FactPurchase
FactPurchaseKey
Status Dim_ShipMethod
ShipMethodKey
EmployeeKey
ShipMethodID
VendorKey
Name
ProductKey
ShipBase
LineTotal
Tax
ShipMethodKey
DimEmployee
EmployeeKey
BusinessEntityID
Title
FirstName
Figure 4.18 Complete load data from the data source into the fact table.
After repeat the ETL process for all the Dimension and Fact tables in our Data
Warehouse, we complete building and integrating data from the data source into our Data
Warehouse to conduct analyst.