Switzerland Campus
About EIMT
Research
Student Zone
How to Apply
Apply Now
Request Info
Online Payment
Bank Transfer
Home / Fact Table vs. Dimension Table
TECHNOLOGY
Aug 18, 2025
Modern business intelligence depends on a careful balance between performance and clarity. This balance is achieved through two specialized table types in data warehousing — Fact Tables, which capture measurable events, and Dimension Tables, which add the descriptive context that makes analysis possible.
Understanding their differences is essential for:
This article examines a detailed breakdown of Fact Tables and Dimension Tables, including definitions, examples, major differences, use cases, and best practice for designing them effectively.
Fact Table: Stores quantitative metrics (measurable values) of a business process, e.g., sales value, units sold, or profit.
Dimension Table: Stores descriptive information (context) regarding the facts, including product names, customer information, or store locations.
Key difference:
A Fact Table is the central table in a star schema or snowflake schema of a data warehouse. It contains:
These facts are typically aggregatable (sum, average, min, max).
Think of an e-commerce sales database. A sample Sales_Fact table might look like:
Date_Key |
Product_Key |
Customer_Key |
Store_Key |
Sales_Amount |
Quantity_Sold |
20230801 |
1002 |
5021 |
301 |
250 |
3 |
20230801 |
1003 |
5022 |
302 |
120 |
1 |
Here:
Also read - AI for Strategic Planning: Leveraging Data for Long-Term Business Growth
A Dimension Table contains descriptive attributes that provide context to the facts. It answers questions like “Who? What? Where? When? Why? How?” in relation to a fact.
Using the previous e-commerce example, a Product_Dim table might look like:
Product_Key |
Product_Name |
Category |
Brand |
Launch_Date |
1002 |
Wireless Mouse |
Accessories |
Logitech |
2022-03-01 |
1003 |
Laptop Pro 15 |
Computers |
Dell |
2023-06-15 |
Here:
Feature |
Fact Table |
Dimension Table |
Purpose |
Stores measurable metrics |
Stores descriptive attributes |
Content |
Numeric values + foreign keys |
Textual/contextual data |
Size |
Very large |
Smaller than fact table |
Granularity |
Lowest level of detail for analysis |
One row per entity |
Keys |
Composite key (foreign keys) |
Primary key (single) |
Aggregations |
Frequently aggregated (SUM, AVG, etc.) |
Rarely aggregated |
Change Frequency |
Changes often (new facts) |
Changes slowly (attributes) |
Storage |
Mostly numeric |
Mostly textual |
Separating facts and dimensions is critical for:
In a Star Schema:
Example:
Date_Dim
|
Product_Dim - Sales_Fact - Customer_Dim
|
Store_Dim
In a Snowflake Schema, dimensions may be normalized into multiple related tables.
1.Fact Table: Sales_Fact
2.Dimension Tables:
This separation enables fast, flexible reporting:
Q1: How do a Fact Table and a Dimension Table differ in the key aspects?
A Fact Table holds numerical measures regarding business events, while a Dimension Table holds descriptive attributes that provide the context for those measures.
Q2: Is it possible for a Fact Table to be without a Dimension Table?
Technically, but in dimensional modeling, Fact Tables nearly always join Dimension Tables to provide useful analysis.
Q3: Are Fact Tables necessarily bigger than Dimension Tables?
Yes, by and large. Fact Tables capture all transactions or events, so they increase quickly. Dimension Tables hold quite static reference data.
Q4: Give an example of a retail Fact Table.
A sales fact table with columns for date, product, customer, store, sales amount, and quantity sold.
Q5: What is a Slowly Changing Dimension (SCD)?
A technique for tracking attribute change in a Dimension Table over time to provide historical accuracy.
Grasping the difference between Fact Tables and Dimension Tables is essential for designing reliable and scalable data warehouses.
Keeping numerical measures separate from descriptive attributes helps organizations in:
Whether you’re designing a retail sales warehouse, a hospital patient care system, or a financial reporting platform, the principles remain the same:
Facts tell you “how much,” whereas dimensions tell you “about what.”
And together, they make data analysis powerful, accurate, and actionable.
Stay Connected !! To check out what is happening at EIMT read our latest blogs and articles.