Dimensional Model
Dimensional Model
DIMENSIONAL MODEL
Data Warehouse _ Abdelrhman Elsamani
Dimensional Model
• A dimensional model is a data structure technique
optimized for Data warehousing tools. The concept of
Dimensional Modeling was developed by Ralph Kimball
and is comprised of "fact" and "dimension" tables.
• Fact
• Dimension
• Attributes
• Fact Table
• Dimension table
Data Warehouse _ Abdelrhman Elsamani
• Fact
Facts are the measurements/metrics or facts from your
business process. For a Sales business process, a
measurement would be quarterly sales number
• Dimension
Dimension provides the context surrounding a business
process event. In simple terms, they give who, what, where
of a fact. In the Sales business process, for the fact
quarterly sales number, dimensions would be
Who – Customer Names
Where – Location
What – Product Name
In other words, a dimension is a window to view information
in the facts.
Data Warehouse _ Abdelrhman Elsamani
• Attributes
The Attributes are the various characteristics of the
dimension.
In the Location dimension, the attributes can be
State
Country
Zip code etc.
Attributes are used to search, filter, or classify facts.
Dimension Tables contain Attributes
• Fact Table
A fact table is a primary table in a dimensional model.
• A Fact Table contains
• Measurements/facts
• Foreign key to dimension table
Data Warehouse _ Abdelrhman Elsamani
• Dimension table
A dimension table contains dimensions of a fact.
They are joined to fact table via a foreign key.
Dimension tables are de-normalized tables.
The Dimension Attributes are the various columns in a dimension
table
Dimensions offers descriptive characteristics of the facts with the
help of their attributes
No set limit set for given for number of dimensions
The dimension can also contain one or more hierarchical
relationships
Data Warehouse _ Abdelrhman Elsamani
• Example of Grain:
• wants to find the sales for specific products in different locations on a
daily basis.
• So, the grain is "product sale information by location by the day."
Data Warehouse _ Abdelrhman Elsamani
• Snowflake Schema
• The snowflake schema is an extension of the star schema. In a
snowflake schema, each dimension are normalized and connected
to more dimension tables.
Data Warehouse _ Abdelrhman Elsamani
H. W
• Benefits of dimensional modeling