Concept

Fact table

In data warehousing, a fact table consists of the measurements, metrics or facts of a business process. It is located at the center of a star schema or a snowflake schema surrounded by dimension tables. Where multiple fact tables are used, these are arranged as a fact constellation schema. A fact table typically has two types of columns: those that contain facts and those that are a foreign key to dimension tables. The primary key of a fact table is usually a composite key that is made up of all of its foreign keys. Fact tables contain the content of the data warehouse and store different types of measures like additive, non-additive, and semi-additive measures. Fact tables provide the (usually) additive values that act as independent variables by which dimensional attributes are analyzed. Fact tables are often defined by their grain. The grain of a fact table represents the most atomic level by which the facts may be defined. The grain of a sales fact table might be stated as "sales volume by day by product by store". Each record in this fact table is therefore uniquely defined by a day, product, and store. Other dimensions might be members of this fact table (such as location/region) but these add nothing to the uniqueness of the fact records. These "affiliate dimensions" allow for additional slices of the independent facts but generally provide insights at a higher level of aggregation (a region contains many stores). If the business process is sales, then the corresponding fact table will typically contain columns representing both raw facts and aggregations in rows such as: 12,000,being"salesforNewYorkstorefor15Jan2005".12,000, being "sales for New York store for 15-Jan-2005". 34,000, being "sales for Los Angeles store for 15-Jan-2005" 22,000,being"salesforNewYorkstorefor16Jan2005"22,000, being "sales for New York store for 16-Jan-2005" 21,000, being "average daily sales for Los Angeles Store for Jan-2005" 65,000,being"averagedailysalesforLosAngelesStoreforFeb2005"65,000, being "average daily sales for Los Angeles Store for Feb-2005" 33,000, being "average daily sales for Los Angeles Store for year 2005" "Average daily sales" is a measurement that is stored in the fact table.

About this result
This page is automatically generated and may contain information that is not correct, complete, up-to-date, or relevant to your search query. The same applies to every other page on this website. Please make sure to verify the information with EPFL's official sources.

Graph Chatbot

Chat with Graph Search

Ask any question about EPFL courses, lectures, exercises, research, news, etc. or try the example questions below.

DISCLAIMER: The Graph Chatbot is not programmed to provide explicit or categorical answers to your questions. Rather, it transforms your questions into API requests that are distributed across the various IT services officially administered by EPFL. Its purpose is solely to collect and recommend relevant references to content that you can explore to help you answer your questions.