Sunteți pe pagina 1din 74

Table Name

DimAccount

COLUMNS

TYPE

AccountKey
ParentAccountKey
AccountLabel
AccountName
AccountDescription
AccountType
Operator
CustomMembers
ValueType
CustomMemberOptions
ETLLoadID
LoadDate
UpdateDate

int
int
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
int
datetime
datetime

Table Name

DimChannel

COLUMNS

TYPE

ChannelKey
ChannelLabel
ChannelName
ChannelDescription
ETLLoadID
LoadDate
UpdateDate

int
nvarchar
nvarchar
nvarchar
int
datetime
datetime

Table Name

DimCurrency

COLUMNS

TYPE

CurrencyKey
CurrencyLabel
CurrencyName
CurrencyDescription
ETLLoadID
LoadDate
UpdateDate

int
nvarchar
nvarchar
nvarchar
int
datetime
datetime

Table Name

DimCustomer

COLUMNS

TYPE

CustomerKey
GeographyKey
CustomerLabel
Title
FirstName

int
int
nvarchar
nvarchar
nvarchar

LENGTH

4
4
100
50
50
50
50
300
50
200
4
8
8

LENGTH

4
100
20
50
4
8
8

LENGTH

4
10
20
50
4
8
8

LENGTH

4
4
100
8
50

MiddleName
LastName
NameStyle
BirthDate
MaritalStatus
Suffix
Gender
EmailAddress
YearlyIncome
TotalChildren
NumberChildrenAtHome
Education
Occupation
HouseOwnerFlag
NumberCarsOwned
AddressLine1
AddressLine2
Phone
DateFirstPurchase
CustomerType
ETLLoadID
LoadDate
UpdateDate

nvarchar
nvarchar
bit
date
nvarchar
nvarchar
nvarchar
nvarchar
money
tinyint
tinyint
nvarchar
nvarchar
nchar
tinyint
nvarchar
nvarchar
nvarchar
date
nvarchar
int
datetime
datetime

Table Name

DimDate

COLUMNS

TYPE

Datekey
FullDateLabel
DateDescription
CalendarYear
CalendarYearLabel
CalendarHalfYear
CalendarHalfYearLabel
CalendarQuarter
CalendarQuarterLabel
CalendarMonth
CalendarMonthLabel
CalendarWeek
CalendarWeekLabel
CalendarDayOfWeek
CalendarDayOfWeekLabel
FiscalYear
FiscalYearLabel

Datetime
nvarchar
nvarchar
int
nvarchar
int
nvarchar
int
nvarchar
int
nvarchar
int
nvarchar
int
nvarchar
int
nvarchar

50
50
1
3
1
10
1
50
8
1
1
40
100
1
1
120
120
20
3
15
4
8
8

LENGTH

20
20
4
20
4
20
4
20
4
20
4
20
4
10
4
20

FiscalHalfYear
FiscalHalfYearLabel
FiscalQuarter
FiscalQuarterLabel
FiscalMonth
FiscalMonthLabel
IsWorkDay
IsHoliday
HolidayName
EuropeSeason
NorthAmericaSeason
AsiaSeason

int
nvarchar
int
nvarchar
int
nvarchar
nvarchar
int
nvarchar
nvarchar
nvarchar
nvarchar

Table Name

DimEmployee

COLUMNS

TYPE

EmployeeKey
ParentEmployeeKey
FirstName
LastName
MiddleName
Title
HireDate
BirthDate
EmailAddress
Phone
MaritalStatus
EmergencyContactName
EmergencyContactPhone
SalariedFlag
Gender
PayFrequency
BaseRate
VacationHours
CurrentFlag
SalesPersonFlag
DepartmentName
StartDate
EndDate
Status
ETLLoadID
LoadDate
UpdateDate

int
int
nvarchar
nvarchar
nvarchar
nvarchar
date
date
nvarchar
nvarchar
nchar
nvarchar
nvarchar
bit
nchar
tinyint
money
smallint
bit
bit
nvarchar
date
date
nvarchar
int
datetime
datetime

4
20
4
20
4
20
20
4
20
50
50
50

LENGTH

4
4
50
50
50
50
3
3
50
25
1
50
25
1
1
1
8
2
1
1
50
3
3
50
4
8
8

Table Name

DimEntity

COLUMNS

TYPE

EntityKey
EntityLabel
ParentEntityKey
ParentEntityLabel
EntityName
EntityDescription
EntityType
StartDate
EndDate
Status
ETLLoadID
LoadDate
UpdateDate

int
nvarchar
int
nvarchar
nvarchar
nvarchar
nvarchar
datetime
datetime
nvarchar
int
datetime
datetime

Table Name

DimMachine

COLUMNS

TYPE

MachineKey
MachineLabel
StoreKey
MachineType
MachineName
MachineDescription
VendorName
MachineOS
MachineSource
MachineHardware
MachineSoftware
Status
ServiceStartDate
DecommissionDate
LastModifiedDate
ETLLoadID
LoadDate
UpdateDate

int
nvarchar
int
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
datetime
datetime
datetime
int
datetime
datetime

Table Name

DimOutage

COLUMNS

TYPE

OutageKey
OutageLabel
OutageName
OutageDescription

int
nvarchar
nvarchar
nvarchar

LENGTH

4
100
4
100
50
100
100
8
8
50
4
8
8

LENGTH

4
100
4
50
100
200
50
50
100
100
100
50
8
8
8
4
8
8

LENGTH

4
100
50
200

OutageType
OutageTypeDescription
OutageSubType
OutageSubTypeDescription
ETLLoadID
LoadDate
UpdateDate

nvarchar
nvarchar
nvarchar
nvarchar
int
datetime
datetime

Table Name

DimProduct

COLUMNS

TYPE

ProductKey
ProductLabel
ProductName
ProductDescription
ProductSubcategoryKey
Manufacturer
BrandName
ClassID
ClassName
StyleID
StyleName
ColorID
ColorName
Size
SizeRange
SizeUnitMeasureID
Weight
WeightUnitMeasureID
UnitOfMeasureID
UnitOfMeasureName
StockTypeID
StockTypeName
UnitCost
UnitPrice
AvailableForSaleDate
StopSaleDate
Status
ImageURL
ProductURL
ETLLoadID
LoadDate
UpdateDate

int
nvarchar
nvarchar
nvarchar
int
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
float
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
money
money
datetime
datetime
nvarchar
nvarchar
nvarchar
int
datetime
datetime

50
200
50
200
4
8
8

LENGTH

4
255
500
400
4
50
50
10
20
10
20
10
20
50
50
20
8
20
10
40
10
40
8
8
8
8
7
150
150
4
8
8

Table Name

DimProductCategory

COLUMNS

TYPE

ProductCategoryKey
ProductCategoryLabel
ProductCategoryName
ProductCategoryDescription
ETLLoadID
LoadDate
UpdateDate

int
nvarchar
nvarchar
nvarchar
int
datetime
datetime

Table Name

DimProductSubcategory

COLUMNS

TYPE

ProductSubcategoryKey
ProductSubcategoryLabel
ProductSubcategoryName
ProductSubcategoryDesciption
ProductCategoryKey
ETLLoadID
LoadDate
UpdateDate

int
nvarchar
nvarchar
nvarchar
int
int
datetime
datetime

Table Name

DimPromotion

COLUMNS

TYPE

PromotionKey
PromotionLabel
PromotionName
Promotiondescription
DiscountPercent
PromotionType
PromotionCategory
MinQuantity
MaxQuantity
StartDate
EndDate
ETLLoadID
LoadDate
UpdateDate

int
nvarchar
nvarchar
nvarchar
float
nvarchar
nvarchar
int
int
datetime
datetime
int
datetime
datetime

Table Name

DimSalesTerritory

COLUMNS

TYPE

SalesTerritoryKey
GeographyKey
SalesTerritoryLabel

int
int
nvarchar

LENGTH

4
100
30
50
4
8
8

LENGTH

4
100
50
100
4
4
8
8

LENGTH

4
100
20
255
8
50
50
4
4
8
8
4
8
8

LENGTH

4
4
100

SalesTerritoryName
SalesTerritoryRegion
SalesTerritoryCountry
SalesTerritoryGroup
SalesTerritoryLevel
SalesTerritoryManager
StartDate
EndDate
Status
ETLLoadID
LoadDate
UpdateDate

nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
int
datetime
datetime
nvarchar
int
datetime
datetime

Table Name

DimScenario

COLUMNS

TYPE

ScenarioKey
ScenarioLabel
ScenarioName
ScenarioDescription
ETLLoadID
LoadDate
UpdateDate

int
nvarchar
nvarchar
nvarchar
int
datetime
datetime

Table Name

DimStore

COLUMNS

TYPE

StoreKey
GeographyKey
StoreManager
StoreType
StoreName
StoreDescription
Status
OpenDate
CloseDate
EntityKey
ZipCode
ZipCodeExtension
StorePhone
StoreFax
AddressLine1
AddressLine2
CloseReason
EmployeeCount

int
int
int
nvarchar
nvarchar
nvarchar
nvarchar
datetime
datetime
int
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
int

50
50
50
50
10
4
8
8
50
4
8
8

LENGTH

4
100
20
50
4
8
8

LENGTH

4
4
4
15
100
300
20
8
8
4
20
10
15
14
100
100
20
4

SellingAreaSize
LastRemodelDate
GeoLocation
Geometry
ETLLoadID
LoadDate
UpdateDate

float
datetime
geography
geometry
int
datetime
datetime

Table Name

DimGeography

COLUMNS

TYPE

GeographyKey
GeographyType
ContinentName
CityName
StateProvinceName
RegionCountryName
Geometry
ETLLoadID
LoadDate
UpdateDate

int
nvarchar
nvarchar
nvarchar
nvarchar
nvarchar
geometry
int
datetime
datetime

8
8

4
8
8

LENGTH

4
50
50
100
100
100
4
8
8

description

The primary key of account table


The parent key of account table
The account label
The name of account.
The account description
The type of the account such as Asset or income
The operator of the account record
The account custom member for MDX calculation
The value type of the account record
The options of custom members for MDX calculation
ETL load process ID
Loaded date, used for ETL
Updated date, used for ETL

description

The primary key of channel table


The channel label
The name of the channel.(Store/Online/Catalog/Reseller)
The description of the channel
ETL load process ID
Loaded date, used for ETL
Updated date, used for ETL

description

The primary key of currency table


The abbreviation of the currency
The name of the currency (USD/GBP/CNY)
The description of the currency
ETL load process ID
Loaded date, used for ETL
Updated date, used for ETL

description

The primary key of customer table


Foreign key pointed to PK in DimGeography table
The abbreviated description of the customer
The title of the customer
The first name of the customer

The middle name of the customer


The last name of the customer
The style of the customer name
The birthday of the customer
The marital status of the customer
The suffix of the customer
The gender of the customer
The email address of the customer
The yearly income of the customer
The number of children
The at-home children number
The education of the customer
The occupation of the customer
The flag of whether the customer owns a house
The number of cars owned by customer
The address 1 of the customer
The address 2 of the customer
The phone number of the customer
The first purchase date of the customer
The type of customer(Person/Company)
ETL load process ID
Loaded date, used for ETL
Updated date, used for ETL

description

The primary key of Date table


Date label
Date description
Calendar year
Label of calendar year
Half year
Label of the half year
Quarter of a calendar year
Label of the quarter
Month of a calendar year
Label of the month
Week of a calendar year
Label of the week
Date of a calendar year
Label of the date
Fiscal year
Label of the fiscal year

Half year of a fiscal year


Label of the half fiscal year
Quarter of a fiscal year
Label of the fiscal quarter
Month of a fiscal year
Label of the fiscal month
Whether it is a work day
Whether it is a holiday
The name of the holiday if it is a holiday
The marketing season in Europe.
The marketing season in North America.
The marketing season in Asia.

description

The primary key of employee table


The key of direct report manager
First name
Last name
Middle name
The title of the employee
The hire date
The birth date of the employee
The email address of the employee
The phone number of the employee
The marital status of the employee
Emergency contact name
Emergency contact phone
The flag of salary
The gender of the employee
The pay frequency of the employee
The base rate of the salary
The vacation hours of the employee
Whether is a current employee
Whether is a sales person
The department of the employee belongs to
Hiring start date
Hiring end date
The status of the employee
ETL load process ID
Loaded date, used for ETL
Updated date, used for ETL

description

The primary key of Entity table


The label of the entity
The key of parent entity
The label of parent entity
The entity name
The entity description
The entity type (Group/Country/Region/Store)
the start date of Entity (used for slow change dimension)
the end date of Entity (used for slow change dimension)
the status of the Entity (Current/Retired)
ETL load process ID
Loaded date, used for ETL
Updated date, used for ETL

description

The primary key of machine table


The label of machine (POS0128201/POS0100101/)
The store by which the machine is owned
The machine type (the generation of POS or Server: POS01/POS02/SER01/SER03/SWH01/HUB01/.)
The machine name
The machine description
Procurement vendor
Operating system
Machine location (Store/Data Center)
Hardware configuration
Software configuration
The status of the machine (Active/Decommission)
Service start date
Service decommission date
The last updated date.
ETL load process ID
Loaded date, used for ETL
Updated date, used for ETL

description

The
The
The
The

primary key of outage table


label of outage
outage name
outage description

The outage type (Hardware/Software/Network/Maintenance..)


The outage type description
The sub type of the outage (Hardware Memory/Array Controller/Fiber Channel)
The outage sub type description
ETL load process ID
Loaded date, used for ETL
Updated date, used for ETL

description

The primary key of Product table


The label of product
The name of product
The description of product
The key of product sub category
The manufacturer of the product
The brand name of the product
The Consumption class ID of the product
The Consumption class name (Economy/Middle/Luxury/Null)
The style ID of the product
The style name of the product (Professional/Home/...)
The color ID of the product
The product color name (Red/Blue/Black/...)
The size of the product
The allowable maximum size of the product
The size unit ID
The weight of the product
The weight unit ID
The unit measure ID
The name of unit measure
The ID of stock type
The name of stock type (High/Mid/Low)
The unit product cost
The suggested unit price
Start selling date
Stop selling date
Selling status
Image URL address
URL address
ETL load process ID
Loaded date, used for ETL
Updated date, used for ETL

description

The primary key of ProductCategory table


The label of the category
The category name (AUDIO/TV&VEDIO/COMPUTERS/CELLPHONES...)
The details of the category
ETL load process ID
Loaded date, used for ETL
Updated date, used for ETL

description

Primary Key
The label of the subcategory
The subcategory's name(Televisions/VCD&DVD/Home Theater System/Accessories)
The details of the subcategory
Which category the subcategory belongs to
ETL load process ID
Loaded date, used for ETL
Updated date, used for ETL

description

The primary key of Promotion table


The label of the promotion plan
Promotion's name
The details of the promotion
Discount rate
The type of the promotion plan (No Discount/Excess Inventory/Seasonal Discount)
The category of the promotion (Store/Customer)
The minimum quantity
The maximum quantity
The start date of the promotion plan
The end date of the promotion plan
ETL load process ID
Loaded date, used for ETL
Updated date, used for ETL

description

The primary key of sales territory table


The foreign key linked to DimGeography table
The label of the sales territory

The sales territory name.(Contoso Redmond Store/Contoso New York Store/...)


The region of the sales territory (Colorado/Wisconsin/Texas/Florida)
The country of the sales territory (United States/UK/Switzerland)
The group of the sales territory (North American/Asian/European )
The sales territory level
The manager name of the sales territory
Start date (used for slow change dimension)
Retired date (used for slow change dimension)
the status of the sales territory (Current/Retired)
ETL load process ID
Loaded date, used for ETL
Updated date, used for ETL

description

The primary key of Scenario table.


The label of the scenario
Scenario's name(Actual/Budget/Forecast)
The details of the scenario
ETL load process ID
Loaded date, used for ETL
Updated date, used for ETL

description

The primary key of Store table


The foreign key pointed to DimGeography table
The manager of the store
The type of the store (Online/Catalog/Store)
The store's name
The details of the store
The status of the store (Open/Close)
The open date of the store
The close date of the store
The key pointed to DimEntity, DimStore is the subset of DimEntity
The zip code
The zip code's extension
The phone number of the store
The fax number of the store
The store address
The store address
Why the store close
The number of the store staf

The size of the store


The last remodel day of the store
The store's geography location
The store's geometry location
ETL load process ID
Loaded date, used for ETL
Updated date, used for ETL

description

The primary key of Geography table


The type of geography (Continent/RegionCountry/StateProvince/City)
The Continent Name (Asia/Europe/North America)
The City Name (New York/Redmond/Las Vegas)
The State or Province Name (Colorado/Wisconsin/Texas/Florida)
The Country or Region Name (United States/Canada/Switzerland)
The geometry location data
ETL load process ID
Loaded date, used for ETL
Updated date, used for ETL

NOTES

PK

NOTES

PK

NOTES

PK

NOTES

PK
FK

NOTES

PK

NOTES

PK
FK

NOTES

PK

NOTES

PK
FK

NOTES

PK

NOTES

PK

FK

NOTES

PK

NOTES

PK

FK

NOTES

PK

NOTES

PK
FK

NOTES

PK

NOTES

PK
FK

NOTES

PK

Table Name

FactExchangeRate (Contains exchange rates converted from other currency to

COLUMNS

TYPE

ExchangeRateKey
CurrencyKey
DateKey
AverageRate
EndOfDayRate
ETLLoadID
LoadDate
UpdateDate

int
int
datetime
float
float
int
datetime
datetime

Table Name

FactInventory (Summary table, containes per store per product weekly invento

COLUMNS

TYPE

InventoryKey
DateKey
StoreKey
ProductKey
CurrencyKey
OnHandQuantity
OnOrderQuantity
SafetyStockQuantity
UnitCost
DaysInStock
MinDayInStock
MaxDayInStock
Aging
ETLLoadID
LoadDate
UpdateDate

int
datetime
int
int
int
int
int
int
money
int
int
int
int
int
datetime
datetime

Table Name

FactITMachine (Contains machine procurement and maintenance costs)

COLUMNS

TYPE

ITMachinekey
MachineKey
Datekey
CostAmount
CostType
ETLLoadID
LoadDate
UpdateDate

int
int
datetime
money
nvarchar
int
datetime
datetime

Table Name

FactITSLA (Contains outage information)

COLUMNS

TYPE

LENGTH

4
4
8
8
4
8
8

LENGTH

4
4
4
4
4
4
4
8
4
4
4
4
4
8
8

LENGTH

4
4
8
200
4
8
8

LENGTH

ITSLAkey
DateKey
StoreKey
MachineKey
OutageKey
OutageStartTime
OutageEndTime
DownTime
ETLLoadID
LoadDate
UpdateDate

int
datetime
int
int
int
datetime
datetime
int
int
datetime
datetime

Table Name

FactSales (Summary table, contains per store per product daily sales data)

COLUMNS

TYPE

SalesKey
DateKey
ChannelKey
StoreKey
ProductKey
PromotionKey
CurrencyKey
UnitCost
UnitPrice
SalesQuantity
ReturnQuantity
ReturnAmount
DiscountQuantity
DiscountAmount
TotalCost
SalesAmount
ETLLoadID
LoadDate
UpdateDate

int
datetime
int
int
int
int
int
money
money
int
int
money
int
money
money
money
int
datetime
datetime

Table Name

FactSalesQuota (Sales operational plan, not only contains Planning/Forecasti

COLUMNS

TYPE

SalesQuotaKey
StoreKey
ProductKey
ChannelKey
DateKey
CurrencyKey
ScenarioKey

int
int
int
int
datetime
int
int

4
4
4
8
8
4
4
8
8

LENGTH

4
4
4
4
4
4
8
8
4
4
8
4
8
8
8
4
8
8

LENGTH

4
4
4
4
4
4

SalesAmountQuota
SalesQuantityQuota
GrossMarginQuota
ETLLoadID
LoadDate
UpdateDate

money
money
money
int
datetime
datetime

8
8
8
4
8
8

Table Name

FactStrategyPlan (Corporate strategic plan, contains the whole group's month

COLUMNS

TYPE

StrategyPlanKey
Datekey
EntityKey
ScenarioKey
AccountKey
CurrencyKey
ProductCategoryKey
Amount
ETLLoadID
LoadDate
UpdateDate

int
datetime
int
int
int
int
int
money
int
datetime
datetime

Table Name

FactOnlineSales (Sales transactional data, contains each sales transactions o

COLUMNS

TYPE

OnlineSalesKey
DateKey
StoreKey
ProductKey
PromotionKey
CurrencyKey
CustomerKey
SalesOrderNumber
SalesOrderLineNumber
SalesQuantity
SalesAmount
ReturnQuantity
ReturnAmount
DiscountQuantity
DiscountAmount
TotalCost
UnitCost
UnitPrice
ETLLoadID

int
datetime
int
int
int
int
int
nvarchar
int
int
money
int
money
int
money
money
money
money
int

LENGTH

4
4
4
4
4
4
8
4
8
8

LENGTH

4
4
4
4
4
4
20
4
4
8
4
8
4
8
8
8
8
4

LoadDate
UpdateDate

datetime
datetime

8
8

s exchange rates converted from other currency to basic currency of Contoso Corporate)
DISCRIPTION

The Primary Key


The foreign key pointed to PK in DimCurrency
Table DimDate's Primary Key
Average rate of the day
The rate in the end of the day
ETL load process ID
Load date, used for ETL
Update date, used for ETL

ble, containes per store per product weekly inventory data)


DISCRIPTION

Table FactInventory's Primary Key


Foreign key pointed to PK in DimDate
Foreign key pointed to PK in DimStore
Foreign key pointed to PK in DimProduct
Foreign key pointed to PK in DimCurrency
The avaliable Quantity of products
The ordered Quantity of products
The Quantity of safety stock
The average unit cost of a product
The days of the products stayed in the stock
The minimum days of the products stayed in the stock
The maximum days of the products stayed in the stock
The days that goods in stock can meet sales needs
ETL load process ID
Load date, used for ETL
Update date, used for ETL

achine procurement and maintenance costs)


DISCRIPTION

Table FactITMachine's Primary Key


Foreign key linked to PK in DimMachine
Foreign key linked to PK in DimDate
The actual cost of each machine
The Machine Cost Type(Maintenance/Purchase/...)
ETL load process ID
Load date, used for ETL
Update date, used for ETL
information)
DISCRIPTION

Table FactITSLA's Primary Key


Foreign key linked to PK in DimDate
Foreign key linked to PK in DimStore
Foreign key linked to PK inDimMachine
Foreign key linked to PK in DimOutage
The time when the outage happened
The time when the outage resolved
The machine down time
ETL load process ID
Load date, used for ETL
Update date, used for ETL

contains per store per product daily sales data)


DISCRIPTION

Table FactSales's Primary Key


Foreign key linked to PK in DimDate
Foreign key linked to PK in DimChannel
Foreign key linked to PK in DimStore
Foreign key linked to PK in DimProduct
Foreign key linked to PK in DimPromotion
Foreign key linked to PK in Currency
The unit cost of product
The unit price of product
Sale quantity
Returned quantity
Returned amount
Discount quantity
Discount amount
Total cost
Total sales amount
ETL load process ID
Load date, used for ETL
Update date, used for ETL

ational plan, not only contains Planning/Forecasting/Budgeting data, but also contains actual sales data)
DISCRIPTION

Table FactSalesQuota's Primary Key


Foreign key linked to PK in DimStore
Foreign key linked to PK in DimProduct
Foreign key linked to PK in DimChannel
Foreign key linked to PK in DimDate
Foreign key linked to PK in DimCurrency
Foreign key linked to PK in DimScenario

The sales amount data


The sales quantity data
The Gross Margin data
ETL load process ID
Loaded date, used for ETL
Updated date, used for ETL

e strategic plan, contains the whole group's monthly Actual/Forecasting/Budgeting Profit & Loss data)
DISCRIPTION

Table FactStrategyPlan's Primary Key


Foreign key linked to PK in DimDate
Foreign key linked to PK in DimEntity
Foreign key linked to PK in DimScenario
Foreign key linked to PK in DimAccount
Foreign key linked to PK in DimCurrency
Foreign key linked to PK in DimProductCategory
The amount of Actual/budget/forecast
ETL load process ID
Loaded date, used for ETL
Updated date, used for ETL

sactional data, contains each sales transactions occurred in on-line store)


DISCRIPTION

Table FactOnlineSales's Primary Key


Foreign key linked to PK in DimDate
Foreign key linked to PK in DimStore
Foreign key linked to PK in DimProduct
Foreign key linked to PK in DimPromotion
Foreign key linked to PK in Currency
Foreign key linked to PK in Customer
The PO number
Line item of a specific Sales Order
Sale quantity
Sales amount
The quantity of return goods
The amount of return goods
Discount quantity
Discount amount
Total cost
Unit cost
Unit price
ETL load process ID

Loaded date, used for ETL


Updated date, used for ETL

NOTES

PK
FK
FK

NOTES

PK
FK
FK
FK
FK

NOTES

PK
FK
FK

NOTES

PK
FK
FK
FK
FK

NOTES

PK
FK
FK
FK
FK
FK
FK

NOTES

PK
FK
FK
FK
FK
FK

NOTES

PK
FK
FK
FK
FK
FK
FK

NOTES

PK
FK
FK
FK
FK
FK

Dimensions

Promotion
Currency
Channel
Machine
Scenario
Geography
Customer
Account
Employee
Product
Store
Sales Territory
Entity
Outage
Date

Cube (Perspective)
Dimensions

Promotion
Currency
Channel
Scenario
Employee
Geography
Product
Store
SalesTerritory
Entity
Date
Measure Group

Sales

Sales Quota

Exchange Rate

Calculated Members

KPIs

Name set

Cube (Perspective)
Dimensions

Product
Geography
Store
Currency

Date
Entity
SalesTerritory
Employee
Measure Group

Inventory

Exchange Rate
Calculation Members

KPI

Cube (Perspective)
Dimensions

Machine
Store
Outage
Fact IT Machine
Geography
Date
Entity
Employee
SalesTerritory
Measure Group

IT SLA

IT Machine
Machine
Calculated Members
KPI

Cube
Dimensions

Scenario
Account
Entity
Currency
Product
Date
Channel
Measure Group

Strategy Plan
Exchange Rate

Calculated Members

KPI

Data Mining
Name

Customer Classification
Customer Promotion
Basket Analysis
Product Forecast

Hierarchy Name

Geography Hierarchy
Account Level
Employee Level
Product Hierarchy
Geography Hierarchy
Sales Territory Hierarchy
Entity Level
Outage Type Hierarchy
Calendar YQMD
Calendar YWD
Fiscal YQM

Operation(Sales)
Hierarchy Name

Measure Name

Sales
Sales
Sales
Sales
Sales
Sales
Sales

Quantity
Amount
Discount Amount
Discount Quantity
Return Quantity
Return Amount
Total Cost

Sales Unit Cost


Sales Unit Price
Sales Quota Amount
Sales Quota Quantity
Sales Quota Gross Margin
Monthly Average Rate
End Of Day Rate
Member Name

Sales Gross Margin

Sales Amount Growth (Fiscal Year)

Sales Gross Margin Growth (Fiscal Year)

Sales Return Amount Growth (Fiscal Year)

Sales Total Cost Growth (Fiscal Year)

Sales Discount Amount Growth (Fiscal Year)

Sales Amount Growth (Calendar Year)

Sales Gross Margin Growth (Calendar Year)

Sales Return Amount Growth (Calendar Year)

Sales Total Cost Growth (Calendar Year)

Sales Discount Amount Growth (Calendar Year)

Period on Period Growth Sales Amount (Fiscal Year)


Period on Period Growth Sales Gross Margin (Fiscal Year)

Period on Period Growth Sales Return Amount (Fiscal Year)


Period on Period Growth Sales Total Cost (Fiscal Year)
Period on Period Growth Sales Discount Amount (Fiscal Year)
Period on Period Growth Sales Amount (Calendar Year)

Period on Period Growth Sales Gross Margin (Calendar Year)

Period on Period Growth Sales Return Amount (Calendar Year)


Period on Period Growth Sales Total Cost (Calendar Year)

Period on Period Growth Sales Discount Amount (Calendar Year)


Revenue
Product Gross Profit Margin
Channel Revenue
Today, Last 30 Days, This Month, Last 6 Months, Last Year, This Year
Top 50 Products, Top 10 Stores

Operation(Inventory)
Name

Formulas

Inventory On Hand Quantity


Inventory On Order Quantity
Inventory Safety Stock Quantity
Inventory Unit Cost
Inventory Days In Stock
Inventory Min Day In Stock
Inventory Max Day In Stock
Inventory Aging
Inventory Row Count
Monthly Average Rate
End Of Day Rate
Name

Period on Period Change in On-hand Quantity (Fiscal Year)

Period on Period Change in On-order Quantity (Fiscal Year)

On Hand Quantity Growth (Fiscal Year)

On Order Quantity Growth (Fiscal Year)


Inventory On Hand Quantity Avg
Inventory
Inventory
Inventory
Inventory

On Order Quantity Avg


Days In Stock Avg
Aging Avg
Unit Cost Avg

Inventory Safety Stock Quantity Avg


Formulas

Operation(IT Machine)
Hierarchy

Formulas

IT Machine Down Time


IT Machine Down Counts
IT Machine Cost
Machine Quantity
Formulas
Formulas

Strategy Plan
Hierarchy

Formulas

Strategy Plan Amount


Monthly Average Rate
End Of Day Rate

Name

Period on Period of Amount (Fiscal Year)


Period on Period of Amount (?Calendar Year?)

Amount Growth (Fiscal Year)

Amount Growth (Calendar Year)


Formulas

Scenario

Customer Classification by Sales revenue


Camcorder Seasonal promotion sales analysis by customer
Product sales Basket Analysis
Sales revenue forecast by product category

Hierarchy

Continent Name<-Region Country Name<-State Province Name<-City Name


Parent -child
Parent -child
Product Category<- Product Subcategory <-Product
Region/Country<- State <-City<- Store
Sales Territory Group<-Sales Territory Country<-Sales Territory Region<-Sales Territory
Name
Parent-Child: Group<-Region/Country<- State <- Store
Outage type<-Outage Sub type<-Outage name
Calendar Year<-Calendar Quarter<-Calendar Month<-Day
Calendar Year<-Calendar Week<-Week day<-Day
Fiscal Year<-Fiscal Half Year<-Fiscal Quarter<-Fiscal Month

Hierarchy

Formulas

Formulas

[Measures].[Sales Amount]-[Measures].[Sales Total Cost]-[Measures].[Sales Return


Amount]
case
when [Measures].[Parallel Period Of Last FY Sales Amount] = 0
then 0
ELSE (([Measures].[Sales Amount] - [Measures].[Parallel Period Of Last FY Sales
Amount] ) / [Measures].[Parallel Period Of Last FY Sales Amount])
END

case
when [Measures].[Parallel Period Of Last FY Sales Gross Margin] = 0
then 0
ELSE ( ([Measures].[Sales Gross Margin] - [Measures].[Parallel Period Of Last FY Sales
Gross Margin]) / [Measures].[Parallel Period Of Last FY Sales Gross Margin] )
END

case
when [Measures].[Parallel Period Of Last FY Sales Return Amount] = 0
then 0
ELSE ( ([Measures].[Sales Return Amount] - [Measures].[Parallel Period Of Last FY
Sales Return Amount]) / [Measures].[Parallel Period Of Last FY Sales Return Amount] )
END

case
when [Measures].[Parallel Period Of Last FY Sales Total Cost] = 0
then 0
ELSE ( ([Measures].[Sales Total Cost] - [Measures].[Parallel Period Of Last FY Sales
Total Cost]) / [Measures].[Parallel Period Of Last FY Sales Total Cost] )
END

case
when [Measures].[Parallel Period Of Last FY Sales Discount Amount] = 0
then 0
ELSE ( ([Measures].[Sales Discount Amount] - [Measures].[Parallel Period Of Last FY
Sales Discount Amount]) / [Measures].[Parallel Period Of Last FY Sales Discount
Amount] )
END

case
when [Measures].[Parallel Period Of Last Calendar Sales Amount] = 0
then 0
ELSE (([Measures].[Sales Amount] - [Measures].[Parallel Period Of Last Calendar Sales
Amount] ) / [Measures].[Parallel Period Of Last Calendar Sales Amount] )
END
case
when [Measures].[Parallel Period Of Last Calendar Sales Gross Margin] = 0
then 0
ELSE ( ([Measures].[Sales Gross Margin] - [Measures].[Parallel Period Of Last Calendar
Sales Gross Margin] ) / [Measures].[Parallel Period Of Last Calendar Sales Gross
Margin] )
END

case
when [Measures].[Parallel Period Of Last Calendar Sales Return Amount] = 0
then 0
ELSE ( ([Measures].[Sales Return Amount] - [Measures].[Parallel Period Of Last
Calendar Sales Return Amount]) / [Measures].[Parallel Period Of Last Calendar Sales
Return Amount] )
END

case
when [Measures].[Parallel Period Of Last Calendar Sales Total Cost] = 0
then 0
ELSE ( ([Measures].[Sales Total Cost] - [Measures].[Parallel Period Of Last Calendar
Sales Total Cost]) / [Measures].[Parallel Period Of Last Calendar Sales Total Cost])
END

case
when [Measures].[Parallel Period Of Last Calendar Sales Discount Amount] = 0
then 0
ELSE ( ([Measures].[Sales Discount Amount] - [Measures].[Parallel Period Of Last
Calendar Sales Discount Amount]) / [Measures].[Parallel Period Of Last Calendar Sales
Discount Amount] )
END

( parallelperiod( [Date].[Fiscal YQM].[Fiscal Year], 1, [Date].[Fiscal


YQM].currentmember),
[Measures].[Sales Amount])
( parallelperiod( [Date].[Fiscal YQM].[Fiscal Year], 1, [Date].[Fiscal
YQM].currentmember),[Measures].[Sales Gross Margin])
( parallelperiod( [Date].[Fiscal YQM].[Fiscal Year], 1, [Date].[Fiscal
YQM].currentmember),
[Measures].[Sales Return Amount])
( parallelperiod( [Date].[Fiscal YQM].[Fiscal Year], 1, [Date].[Fiscal
YQM].currentmember),[Measures].[Sales Total Cost])
( parallelperiod( [Date].[Fiscal YQM].[Fiscal Year], 1, [Date].[Fiscal
YQM].currentmember),[Measures].[Sales Discount Amount])
( parallelperiod( [Date].[Calendar YQMD].[Calendar Year], 1, [Date].[Calendar
YQMD].currentmember), [Measures].[Sales Amount])
( parallelperiod( [Date].[Calendar YQMD].[Calendar Year], 1, [Date].[Calendar
YQMD].currentmember), [Measures].[Sales Gross Margin])
( parallelperiod( [Date].[Calendar YQMD].[Calendar Year], 1, [Date].[Calendar
YQMD].currentmember), [Measures].[Sales Return Amount])
( parallelperiod( [Date].[Calendar YQMD].[Calendar Year], 1, [Date].[Calendar
YQMD].currentmember), [Measures].[Sales Total Cost])
( parallelperiod( [Date].[Calendar YQMD].[Calendar Year], 1, [Date].[Calendar
YQMD].currentmember), [Measures].[Sales Discount Amount])

Hierarchy

Formulas

( parallelperiod( [Date].[Fiscal YQM].[Fiscal Year], 1, [Date].[Fiscal


YQM].currentmember),
[Measures].[Inventory On Hand Quantity])
( parallelperiod( [Date].[Fiscal YQM].[Fiscal Year], 1, [Date].[Fiscal
YQM].currentmember),
[Measures].[Inventory On Order Quantity])
case
when [Measures].[Parallel Period Of LFY On Hand Quantity] = 0
then 0
ELSE (( [Measures].[Inventory On Hand Quantity] - [Measures].[Parallel Period
Of LFY On Hand Quantity] ) / [Measures].[Parallel Period Of LFY On Hand
Quantity] )
END
case
when [Measures].[Parallel Period Of LFY On Order Quantity] = 0
then 0
ELSE (( [Measures].[Inventory On Order Quantity] - [Measures].[Parallel Period
Of LFY On Order Quantity] ) / [Measures].[Parallel Period Of LFY On Order
Quantity] )
END
[Measures].[Inventory On Hand Quantity]/[Measures].[Inventory Row Count]
[Measures].[Inventory
[Measures].[Inventory
[Measures].[Inventory
[Measures].[Inventory

On Order Quantity]/[Measures].[Inventory Row Count]


Days In Stock]/[Measures].[Inventory Row Count]
Aging]/[Measures].[Inventory Row Count]
Unit Cost]/[Measures].[Inventory Row Count]

[Measures].[Inventory Unit Cost]/[Measures].[Inventory Row Count]

Formulas

( parallelperiod( [Date].[Fiscal YQM].[Fiscal Year], 1, [Date].[Fiscal


YQM].currentmember),
[Measures].[Strategy Plan Amount])
( parallelperiod( [Date].[Calendar YQMD].[Calendar Year], 1, [Date].[Calendar
YQMD].currentmember),
case
when [Measures].[Parallel Period Of LFY Amount] = 0
then 0
ELSE (([Measures].[Strategy Plan Amount] - [Measures].[Parallel Period Of LFY
Amount]) / [Measures].[Parallel Period Of LFY Amount])
END
case
when [Measures].[Parallel Period Of LY Amount] = 0
then 0
ELSE (([Measures].[Strategy Plan Amount] - [Measures].[Parallel Period Of LY Amount])
/ [Measures].[Parallel Period Of LY Amount])
END

Algorithm

Microsoft_Clustering
Microsoft_Decision_Trees
Microsoft_Association_Rules
Microsoft_Time_Series

NOTES

P&L accounts

NOTES

NOTES

NOTES

Growth rate compare to the same period of last fiscal


Year/Quarter/Month/Week/Day

Growth rate compare to the same period of last calendar


Year/Quarter/Month/Week/Day

Invisible: can't see from measures.


Invisible

Invisible
Invisible
Invisible
Invisible

Invisible

Invisible
Invisible

Invisible
NOTES

NOTES

NOTES

Sum
Sum
Invisible(sum)
Invisible(sum)
Invisible(sum)
Min
Max
Invisible(sum)
Invisible(Row Count )

NOTES

Invisible: used in calculation. Invisible to users.

Invisible

Growth rate compare to the same period of last fiscal


Year/Quarter/Month/Week/Day

NOTES

NOTES

NOTES

NOTES
NOTES

NOTES

Actual/Budget/Forecast

NOTES

NOTES

Invisible
Invisible

Growth rate compare to the same period of last fiscal


Year/Quarter/Month/Week/Day

Growth rate compare to the same period of last calendar


Year/Quarter/Month/Week/Day
NOTES

Data Source

V_Customer
V_CustomerPromotion
V_OnlineSalesOrder\V_OnlineSalesOrderDetail
V_ProductForecast

View Name

V_Customer(Used for Data Mining - Customer Classification)

COLUMNS

TYPE

CustomerKey
Age
MaritalStatus
Gender
YearlyIncome
TotalChildren
NumberChildrenAtHome
Education
HouseOwnerFlag
NumberCarsOwned
Consumption

int
int
nchar
nvarchar
money
tinyint
tinyint
nvarchar
nchar
tinyint
money

View Name

V_CustomerPromotion(Used for Data Mining - Customer Promotion )

COLUMNS

TYPE

CustomerKey
PromotionKey
PromotionName
PromotionType
ProductKey
MaritalStatus
Gender
YearlyIncome
TotalChildren
NumberChildrenAtHome
Education
Age
HouseOwnerFlag
NumberCarsOwned

int
int
nvarchar
nvarchar
int
nvarchar
nvarchar
money
tinyint
tinyint
nvarchar
int
nchar
tinyint

View Name

V_OnlineSalesOrder (Used for Data Mining - Basket Analysis )

COLUMNS

TYPE

OrderNumber
CustomerKey
Region
IncomeGroup

nvarchar
int
nvarchar
nvarchar

View Name

V_OnlineSalesOrderDetail (Used for Data Mining - Basket Analysis )

COLUMNS

TYPE

OrderNumber
LineNumber
Product

nvarchar
int
nvarchar

LENGTH

4
4
1
1
8
1
1
40
1
1
8

LENGTH

4
4
20
50
4
1
1
8
1
1
40
4
1
1

LENGTH

20
4
100
8

LENGTH

20
4
500

View Name

V_CustomerOrders (Used for Data Mining - Basket Analysis, sub view

COLUMNS

TYPE

OrderNumber
LineNumber
CalendarYear
FiscalYear
Month
ProductCategoryName
ProductSubcategory
Product
CustomerKey
Region
IncomeGroup
Age
Quantity
Amount

nvarchar
int
int
int
int
nvarchar
nvarchar
nvarchar
int
nvarchar
nvarchar
int
int
money

View Name

V_ProductForecast(Used for Data Mining - Product Forecast )

COLUMNS

TYPE

CalendarMonth
ReportDate
ProductCategoryName
SalesQuantity
SalesAmount

int
date
nvarchar
int
money

LENGTH

20
4
4
4
4
30
50
500
4
100
8
4
4
8

LENGTH

4
8
30
4
8

ing - Customer Classification)


description

Customer key
The age of the customer
The marital status of the customer
The gender of the customer
The yearly income of the customer
The children number of the customer
The at-home children number
The education of the customer
The flag of whether the customer owns a house
The number of cars owned by customer
The Consumption of the customer

or Data Mining - Customer Promotion )


description

Customer key
Promotion key
Promotion's name
The type of the promotion plan(No Discount/Excess Inventory/Seasonal Discount)
Product Key
The marital status of the customer
The gender of the customer
The yearly income of the customer
The children number of the customer
The at-home children number
The education of the customer
The customer's age when purchased the product
Whether the customer owns a house.
The number of cars owned by the customer

Data Mining - Basket Analysis )


description

The Sales Order of Transaction


Customer key
The Country or Region Name (United States/Canada/Switzerland)
The Income level of the Customer (Low/High/Moderate)

ed for Data Mining - Basket Analysis )


description

The Sales Order of Transaction


The Sales Order Line number of Transaction
The name of product.

Data Mining - Basket Analysis, sub view of V_OnlineSalesOrder and V_OnlineSalesOrderDetail)


description

The Sales Order of Transaction


Line item of a specific Sales Order
Calendar year
Fiscal year
Calendar Month
The category name(AUDIO/TV&VEDIO/COMPUTERS/CELLPHONES...)
The subcategory name(Televisions/VCD&DVD/Home Theater System/Accessories)
The name of product
Customer key
The Country or Region Name (United States/Canada/Switzerland)
The Income Group of the Customer (Low/High/Moderate)
The customer's age when purchased the product
Sales quantity
Sales amount

ata Mining - Product Forecast )


description

Calendar month
The First day of the month
The category name (AUDIO/TV&VEDIO/COMPUTERS/CELLPHONES...)
The sales quantity
The sales amount

NOTES

NOTES

NOTES

NOTES

NOTES

NOTES

S-ar putea să vă placă și