Explore Courses
Liverpool Business SchoolLiverpool Business SchoolMBA by Liverpool Business School
  • 18 Months
Bestseller
Golden Gate UniversityGolden Gate UniversityMBA (Master of Business Administration)
  • 15 Months
Popular
O.P.Jindal Global UniversityO.P.Jindal Global UniversityMaster of Business Administration (MBA)
  • 12 Months
New
Birla Institute of Management Technology Birla Institute of Management Technology Post Graduate Diploma in Management (BIMTECH)
  • 24 Months
Liverpool John Moores UniversityLiverpool John Moores UniversityMS in Data Science
  • 18 Months
Popular
IIIT BangaloreIIIT BangalorePost Graduate Programme in Data Science & AI (Executive)
  • 12 Months
Bestseller
Golden Gate UniversityGolden Gate UniversityDBA in Emerging Technologies with concentration in Generative AI
  • 3 Years
upGradupGradData Science Bootcamp with AI
  • 6 Months
New
University of MarylandIIIT BangalorePost Graduate Certificate in Data Science & AI (Executive)
  • 8-8.5 Months
upGradupGradData Science Bootcamp with AI
  • 6 months
Popular
upGrad KnowledgeHutupGrad KnowledgeHutData Engineer Bootcamp
  • Self-Paced
upGradupGradCertificate Course in Business Analytics & Consulting in association with PwC India
  • 06 Months
OP Jindal Global UniversityOP Jindal Global UniversityMaster of Design in User Experience Design
  • 12 Months
Popular
WoolfWoolfMaster of Science in Computer Science
  • 18 Months
New
Jindal Global UniversityJindal Global UniversityMaster of Design in User Experience
  • 12 Months
New
Rushford, GenevaRushford Business SchoolDBA Doctorate in Technology (Computer Science)
  • 36 Months
IIIT BangaloreIIIT BangaloreCloud Computing and DevOps Program (Executive)
  • 8 Months
New
upGrad KnowledgeHutupGrad KnowledgeHutAWS Solutions Architect Certification
  • 32 Hours
upGradupGradFull Stack Software Development Bootcamp
  • 6 Months
Popular
upGradupGradUI/UX Bootcamp
  • 3 Months
upGradupGradCloud Computing Bootcamp
  • 7.5 Months
Golden Gate University Golden Gate University Doctor of Business Administration in Digital Leadership
  • 36 Months
New
Jindal Global UniversityJindal Global UniversityMaster of Design in User Experience
  • 12 Months
New
Golden Gate University Golden Gate University Doctor of Business Administration (DBA)
  • 36 Months
Bestseller
Ecole Supérieure de Gestion et Commerce International ParisEcole Supérieure de Gestion et Commerce International ParisDoctorate of Business Administration (DBA)
  • 36 Months
Rushford, GenevaRushford Business SchoolDoctorate of Business Administration (DBA)
  • 36 Months
KnowledgeHut upGradKnowledgeHut upGradSAFe® 6.0 Certified ScrumMaster (SSM) Training
  • Self-Paced
KnowledgeHut upGradKnowledgeHut upGradPMP® certification
  • Self-Paced
IIM KozhikodeIIM KozhikodeProfessional Certification in HR Management and Analytics
  • 6 Months
Bestseller
Duke CEDuke CEPost Graduate Certificate in Product Management
  • 4-8 Months
Bestseller
upGrad KnowledgeHutupGrad KnowledgeHutLeading SAFe® 6.0 Certification
  • 16 Hours
Popular
upGrad KnowledgeHutupGrad KnowledgeHutCertified ScrumMaster®(CSM) Training
  • 16 Hours
Bestseller
PwCupGrad CampusCertification Program in Financial Modelling & Analysis in association with PwC India
  • 4 Months
upGrad KnowledgeHutupGrad KnowledgeHutSAFe® 6.0 POPM Certification
  • 16 Hours
O.P.Jindal Global UniversityO.P.Jindal Global UniversityMaster of Science in Artificial Intelligence and Data Science
  • 12 Months
Bestseller
Liverpool John Moores University Liverpool John Moores University MS in Machine Learning & AI
  • 18 Months
Popular
Golden Gate UniversityGolden Gate UniversityDBA in Emerging Technologies with concentration in Generative AI
  • 3 Years
IIIT BangaloreIIIT BangaloreExecutive Post Graduate Programme in Machine Learning & AI
  • 13 Months
Bestseller
IIITBIIITBExecutive Program in Generative AI for Leaders
  • 4 Months
upGradupGradAdvanced Certificate Program in GenerativeAI
  • 4 Months
New
IIIT BangaloreIIIT BangalorePost Graduate Certificate in Machine Learning & Deep Learning (Executive)
  • 8 Months
Bestseller
Jindal Global UniversityJindal Global UniversityMaster of Design in User Experience
  • 12 Months
New
Liverpool Business SchoolLiverpool Business SchoolMBA with Marketing Concentration
  • 18 Months
Bestseller
Golden Gate UniversityGolden Gate UniversityMBA with Marketing Concentration
  • 15 Months
Popular
MICAMICAAdvanced Certificate in Digital Marketing and Communication
  • 6 Months
Bestseller
MICAMICAAdvanced Certificate in Brand Communication Management
  • 5 Months
Popular
upGradupGradDigital Marketing Accelerator Program
  • 05 Months
Jindal Global Law SchoolJindal Global Law SchoolLL.M. in Corporate & Financial Law
  • 12 Months
Bestseller
Jindal Global Law SchoolJindal Global Law SchoolLL.M. in AI and Emerging Technologies (Blended Learning Program)
  • 12 Months
Jindal Global Law SchoolJindal Global Law SchoolLL.M. in Intellectual Property & Technology Law
  • 12 Months
Jindal Global Law SchoolJindal Global Law SchoolLL.M. in Dispute Resolution
  • 12 Months
upGradupGradContract Law Certificate Program
  • Self paced
New
ESGCI, ParisESGCI, ParisDoctorate of Business Administration (DBA) from ESGCI, Paris
  • 36 Months
Golden Gate University Golden Gate University Doctor of Business Administration From Golden Gate University, San Francisco
  • 36 Months
Rushford Business SchoolRushford Business SchoolDoctor of Business Administration from Rushford Business School, Switzerland)
  • 36 Months
Edgewood CollegeEdgewood CollegeDoctorate of Business Administration from Edgewood College
  • 24 Months
Golden Gate UniversityGolden Gate UniversityDBA in Emerging Technologies with Concentration in Generative AI
  • 36 Months
Golden Gate University Golden Gate University DBA in Digital Leadership from Golden Gate University, San Francisco
  • 36 Months
Liverpool Business SchoolLiverpool Business SchoolMBA by Liverpool Business School
  • 18 Months
Bestseller
Golden Gate UniversityGolden Gate UniversityMBA (Master of Business Administration)
  • 15 Months
Popular
O.P.Jindal Global UniversityO.P.Jindal Global UniversityMaster of Business Administration (MBA)
  • 12 Months
New
Deakin Business School and Institute of Management Technology, GhaziabadDeakin Business School and IMT, GhaziabadMBA (Master of Business Administration)
  • 12 Months
Liverpool John Moores UniversityLiverpool John Moores UniversityMS in Data Science
  • 18 Months
Bestseller
O.P.Jindal Global UniversityO.P.Jindal Global UniversityMaster of Science in Artificial Intelligence and Data Science
  • 12 Months
Bestseller
IIIT BangaloreIIIT BangalorePost Graduate Programme in Data Science (Executive)
  • 12 Months
Bestseller
O.P.Jindal Global UniversityO.P.Jindal Global UniversityO.P.Jindal Global University
  • 12 Months
WoolfWoolfMaster of Science in Computer Science
  • 18 Months
New
Liverpool John Moores University Liverpool John Moores University MS in Machine Learning & AI
  • 18 Months
Popular
Golden Gate UniversityGolden Gate UniversityDBA in Emerging Technologies with concentration in Generative AI
  • 3 Years
Rushford, GenevaRushford Business SchoolDoctorate of Business Administration (AI/ML)
  • 36 Months
Ecole Supérieure de Gestion et Commerce International ParisEcole Supérieure de Gestion et Commerce International ParisDBA Specialisation in AI & ML
  • 36 Months
Golden Gate University Golden Gate University Doctor of Business Administration (DBA)
  • 36 Months
Bestseller
Ecole Supérieure de Gestion et Commerce International ParisEcole Supérieure de Gestion et Commerce International ParisDoctorate of Business Administration (DBA)
  • 36 Months
Rushford, GenevaRushford Business SchoolDoctorate of Business Administration (DBA)
  • 36 Months
Liverpool Business SchoolLiverpool Business SchoolMBA with Marketing Concentration
  • 18 Months
Bestseller
Golden Gate UniversityGolden Gate UniversityMBA with Marketing Concentration
  • 15 Months
Popular
Jindal Global Law SchoolJindal Global Law SchoolLL.M. in Corporate & Financial Law
  • 12 Months
Bestseller
Jindal Global Law SchoolJindal Global Law SchoolLL.M. in Intellectual Property & Technology Law
  • 12 Months
Jindal Global Law SchoolJindal Global Law SchoolLL.M. in Dispute Resolution
  • 12 Months
IIITBIIITBExecutive Program in Generative AI for Leaders
  • 4 Months
New
IIIT BangaloreIIIT BangaloreExecutive Post Graduate Programme in Machine Learning & AI
  • 13 Months
Bestseller
upGradupGradData Science Bootcamp with AI
  • 6 Months
New
upGradupGradAdvanced Certificate Program in GenerativeAI
  • 4 Months
New
KnowledgeHut upGradKnowledgeHut upGradSAFe® 6.0 Certified ScrumMaster (SSM) Training
  • Self-Paced
upGrad KnowledgeHutupGrad KnowledgeHutCertified ScrumMaster®(CSM) Training
  • 16 Hours
upGrad KnowledgeHutupGrad KnowledgeHutLeading SAFe® 6.0 Certification
  • 16 Hours
KnowledgeHut upGradKnowledgeHut upGradPMP® certification
  • Self-Paced
upGrad KnowledgeHutupGrad KnowledgeHutAWS Solutions Architect Certification
  • 32 Hours
upGrad KnowledgeHutupGrad KnowledgeHutAzure Administrator Certification (AZ-104)
  • 24 Hours
KnowledgeHut upGradKnowledgeHut upGradAWS Cloud Practioner Essentials Certification
  • 1 Week
KnowledgeHut upGradKnowledgeHut upGradAzure Data Engineering Training (DP-203)
  • 1 Week
MICAMICAAdvanced Certificate in Digital Marketing and Communication
  • 6 Months
Bestseller
MICAMICAAdvanced Certificate in Brand Communication Management
  • 5 Months
Popular
IIM KozhikodeIIM KozhikodeProfessional Certification in HR Management and Analytics
  • 6 Months
Bestseller
Duke CEDuke CEPost Graduate Certificate in Product Management
  • 4-8 Months
Bestseller
Loyola Institute of Business Administration (LIBA)Loyola Institute of Business Administration (LIBA)Executive PG Programme in Human Resource Management
  • 11 Months
Popular
Goa Institute of ManagementGoa Institute of ManagementExecutive PG Program in Healthcare Management
  • 11 Months
IMT GhaziabadIMT GhaziabadAdvanced General Management Program
  • 11 Months
Golden Gate UniversityGolden Gate UniversityProfessional Certificate in Global Business Management
  • 6-8 Months
upGradupGradContract Law Certificate Program
  • Self paced
New
IU, GermanyIU, GermanyMaster of Business Administration (90 ECTS)
  • 18 Months
Bestseller
IU, GermanyIU, GermanyMaster in International Management (120 ECTS)
  • 24 Months
Popular
IU, GermanyIU, GermanyB.Sc. Computer Science (180 ECTS)
  • 36 Months
Clark UniversityClark UniversityMaster of Business Administration
  • 23 Months
New
Golden Gate UniversityGolden Gate UniversityMaster of Business Administration
  • 20 Months
Clark University, USClark University, USMS in Project Management
  • 20 Months
New
Edgewood CollegeEdgewood CollegeMaster of Business Administration
  • 23 Months
The American Business SchoolThe American Business SchoolMBA with specialization
  • 23 Months
New
Aivancity ParisAivancity ParisMSc Artificial Intelligence Engineering
  • 24 Months
Aivancity ParisAivancity ParisMSc Data Engineering
  • 24 Months
The American Business SchoolThe American Business SchoolMBA with specialization
  • 23 Months
New
Aivancity ParisAivancity ParisMSc Artificial Intelligence Engineering
  • 24 Months
Aivancity ParisAivancity ParisMSc Data Engineering
  • 24 Months
upGradupGradData Science Bootcamp with AI
  • 6 Months
Popular
upGrad KnowledgeHutupGrad KnowledgeHutData Engineer Bootcamp
  • Self-Paced
upGradupGradFull Stack Software Development Bootcamp
  • 6 Months
Bestseller
upGradupGradUI/UX Bootcamp
  • 3 Months
upGradupGradCloud Computing Bootcamp
  • 7.5 Months
PwCupGrad CampusCertification Program in Financial Modelling & Analysis in association with PwC India
  • 5 Months
upGrad KnowledgeHutupGrad KnowledgeHutSAFe® 6.0 POPM Certification
  • 16 Hours
upGradupGradDigital Marketing Accelerator Program
  • 05 Months
upGradupGradAdvanced Certificate Program in GenerativeAI
  • 4 Months
New
upGradupGradData Science Bootcamp with AI
  • 6 Months
Popular
upGradupGradFull Stack Software Development Bootcamp
  • 6 Months
Bestseller
upGradupGradUI/UX Bootcamp
  • 3 Months
PwCupGrad CampusCertification Program in Financial Modelling & Analysis in association with PwC India
  • 4 Months
upGradupGradCertificate Course in Business Analytics & Consulting in association with PwC India
  • 06 Months
upGradupGradDigital Marketing Accelerator Program
  • 05 Months

Fact Table vs Dimension Table: Difference Between Fact Table and Dimension Table

Updated on 23 August, 2023

7.24K+ views
9 min read

What is a Fact Table?

In the simplest terms, a fact table refers to a central table primarily used in data warehousing and business intelligence systems. It stores quantitative data such as measurements, metrics, or facts related to a particular business process or event. There are typically two columns in a fact table- one for foreign keys, acting as a link to the dimension tables and one for value or data that needs evaluation. 

Fact tables are essentially important because they facilitate the analysis and reporting of business performance by storing granular data that can be analysed across different dimensions. Some of the most common examples of fact tables include inventory levels, website traffic metrics, financial data, and sales transaction data.

Characteristics of a Fact Table

Below are some of the key characteristics of fact tables in data warehousing and business intelligence systems.

  • Foreign Keys – Fact tables contain foreign keys that link to the primary keys in the dimension table.
  • Outrigger Dimensions – They refer to any other dimension table.
  • Additive Measures – A fact table usually contains additive measures, meaning they can quite easily be aggregated across dimensions with the help of mathematical operations such as sum or average.
  • Sparse Data – This refers to a few records on the fact table containing null values or measurements, indicating that they do not provide any data.
  • Fact Table Grain – This refers to the actual depth or level of detail of the information in the fact table. In order for a fact table to be successful, it must be designed at the highest level.
  • Degenerated Dimensions – These refer to attributes that are non-additive, meaning that they cannot be added, despite being available in the fact table.

By adhering to these characteristics, fact tables can efficiently store qualitative data required for analytical processing, thus making them an important tool for data warehousing.

Understanding the Granularity of a Fact Table

The granularity of a fact table is a very crucial component of data analysis and reporting as it defines the scope and accuracy of the insights that can be obtained from the data. 

Simply put, granularity refers to the level of detail or specificity at which individual events or transactions get recorded in the fact table. When designing a fact table, granularity is the foremost factor that needs to be addressed. 

This usually constitutes two crucial steps,

  • Identify the dimensions that need to be included in the fact table
  • Determine where along the hierarchy of the dimensions, the information will be stored.

upGrad’s Data Analytics 360 Cornell Certificate program can help you understand granularity in fact tables while decoding its accurate implementation. 

Check out our free courses to get an edge over the competition.

What is a Dimension Table?

Contrary to a fact table, a dimension table can be described as a type of table that stores all the different attributes or characteristics of the data in the fact table. The information is usually quite descriptive in nature and helps to provide contextual or additional details to the numeric data that is stored in the fact table. 

There are different types of dimensions in data warehouse. Some of the most commonly used dimension tables include slowly changing dimensions, junk dimensions, role-playing dimensions, and shrunken dimensions, among others.

Similar to the fact table, dimension tables are an integral part of the star schema or the snowflake schema data modelling techniques widely used in data warehousing. They usually have columns, which serve as a primary key allowing for the other dimension rows or records to be uniquely identified. 

Characteristics of a Dimension Table

Let’s explore the key characteristics of a dimension table.

  • Unique Identifiers- Each row in the dimension table is assigned a unique identifier which we refer to as the primary key. 
  • Records- There are usually fewer records present than characteristics in a dimension table.
  • Relationship between attributes – In an ideal scenario, each attribute has little to almost no direct relationship.
  • Attribute Values- A dimension table usually contains textual data rather than numbers.
  • De-normalized- A dimension table typically is de-normalized, meaning that redundant data might be stored to improve query performance and simplify data retrieval during the whole analysis process.

Fact Table vs. Dimension Table 

The fact table and dimension table are two important components of the dimension model widely used for data warehousing. On that note, here are a few key points of difference between fact and dimension table. 

Fact Table Dimension Table
The primary purpose of a fact table is to record quantitative or numeric data and facts of a business process. Dimension table is used to store descriptive attributes or characteristics related to the data in the fact table.
There are more records present than in the dimension table There are usually much lesser records present than in the fact table.
Fact tables tend to be large because they store a vast amount of numeric data. In comparison, dimension tables are usually much smaller in size because they do not contain detailed numeric data.
It is mainly used for analysis and decision-making purposes. It mainly stores all the information about a business and its process.
Fact tables do not have any hierarchical structure. Dimension tables can have a hierarchical structure with attributes organised into levels to facilitate drill-down and roll-up analysis.

Now that you have a clear understanding of the notable differences in the fact vs dimension table let’s look at the different types of facts that can be captured in the dimensional model.

Types of Facts

Facts can be categorised into various types depending on the nature or the characteristics of the data they represent. Nonetheless, some of the most common types of facts include,

  • Additive Facts

These are the ones that can be aggregated across all dimensions of a fact table. It involves simple mathematical operations such as addition, subtraction, multiplication or division. A few examples of additive facts might include sales revenue, total cost, or quantity sold. 

  • Non-additive Facts

Contrary to additive facts, non-additive facts refer to those that cannot be aggregated at all or can be aggregated only under certain specific conditions. They represent the measurements that are not additive across dimensions. A few examples of the same are percentages, ratios or averages.

  • Factless Facts 

Factless facts refer to those tables in data warehouses that capture no measures or facts. They are only useful for storing the occurrence of an event without any specific numeric data. For example, a factless fact table might only contain the date or product key without any measures. 

  • Snapshot Facts

These store the state of a business process at any specific point in time. Since they represent a momentary snapshot of data such as daily sales, monthly inventory sales, or weekly website traffic, they are referred to as snapshot facts. 

Ready to unlock the power of data science? Then check out this Graduate Certificate programme in Data Science and AI, brought to you by upGrad. 

Learn data science courses online from the World’s top Universities. Earn Executive PG Programs, Advanced Certificate Programs, or Masters Programs to fast-track your career.

Types of Dimensions in Data Warehouses

There are different types of dimensions in data warehouse, leveraged to organise and describe the data in the fact tables. Some of the most commonly known dimensions are,

  • Normal Dimension 

A normal dimension contains attributes related to a single logical entity. It has a business key, and all attributes heavily depend on the surrogate key. For example, a customer dimension might include customer ID, name, location, and age.

  • Junk Dimension

A junk dimension contains no business key and is typically used to group boolean or binary attributes. It combines multiple indicators into a single dimension table and helps to reduce the number of dimension tables in the data warehouse and improve query performance. The attributes in a junk dimension are usually at the transaction level.

  • Split Dimension

A split dimension is one, as the name suggests, that has been split into multiple tables to reduce the chances of data redundancy and improve data management. It is used when a dimension is predicted to be big, e.g., 20 million rows. Dividing the same into multiple smaller tables makes the data more manageable and efficient to query.

  • Text Dimension

A text dimension usually contains large amounts of textual data such as comments, descriptions or notes. It allows for a more detailed analysis of text-based information. The text dimension is especially useful when hierarchies or relationships exist between different dimensions. 

  • Stacked Dimension

A stacked dimension is one where multiple related dimensions are combined into a single table. It allows for simplification of the data model and makes it easier to navigate and analyse the data.

Example of Fact Table vs Dimension Table

Below is a small example illustrating the difference between fact and dimension tables.

Fact Table

Order ID Product ID Customer ID Quantity Price Discount Total Sales
1001 101 C001 2 $50 $5 $95
1002 102 C002 1 $30 $0 $30
1003 103 C003 3 $20 $2 $58

This fact table has the record of three different sales transactions. It highlights quantitative data such as products sold, unit price, discounts applied and the total sales of each transaction. 

Dimension Table

Product ID Product Name Category Brand
101 Laptop Electronics ABC Inc.
102 Smartphone Electronics XYZ Corp
103 Headphones Accessories DEF Tech

Here, we have information related to the various products sold by the company. Each row represents a unique product and includes attributes such as product name, category, and brand. 

Conclusion

Hopefully, with this, you clearly understand the key differences in data warehouse dimension vs fact table. To sum it up, both these components play crucial roles in organising and storing data for efficient analysis and reporting. 

From performance optimisation and data organisation, to query efficiency and simplified reporting, the list of advantages they bring to the table goes on and on. They enable business enterprises to harness the power of data-driven decision-making for improved business performance. 

If you wish to learn more about intricate data science components like fact table vs dimension table Power BI, do not forget to check out the MS In Data Science program offered by Liverpool John Moores University in collaboration with upGrad. This 18 months course is specifically tailored for IT professionals and sales experts who wish to venture into this vast dynamic world of data science.

Frequently Asked Questions (FAQs)

1. What is the role of dimension hierarchies in data warehousing?

Dimension hierarchies provide a structured way to organise and navigate data at various levels of granularity. With the help of this, data warehouse users can access specific data points while maintaining the ability to view broader trends and insights. This, in turn, facilitates more effective decision-making and data exploration.

2. What are the advantages of using fact and dimension tables in data warehousing compared to other data storage models?

Fact and dimension tables remain among the most widely used data storage models in data warehousing because of the innumerable benefits it brings. Such include improved performance, easy scalability, flexibility and data integrity.

3. What are the main characteristics and functions of a dimension table?

Dimension tables usually contain descriptive attributes that are non-numeric by nature and help to categorise, classify and label the data in the fact table. In addition to this, they often contain hierarchical structures that allow users to navigate through the varied levels of granularity.