Presentation is loading. Please wait.

Presentation is loading. Please wait.

Fact Table The fact table stores business events. The attributes explain the conditions of the entity at the time the business event happened.

Similar presentations


Presentation on theme: "Fact Table The fact table stores business events. The attributes explain the conditions of the entity at the time the business event happened."— Presentation transcript:

1

2 Fact Table The fact table stores business events. The attributes explain the conditions of the entity at the time the business event happened.

3 Dimension Table A dimension table is a table that contains : Various attributes explaining the dimension key in the fact table. The conditions of the entities involved in the business event stored in the fact table. The attributes are stored as columns in the dimension tables. They are known as dimensional attributes.

4 Dimension Table A dimension table is a table that contains various attributes explaining the dimension key in the fact table. Degenerate dimension : is a dimension with only one attribute, and therefore the attribute is put in the fact table. Identifier in the source system Timestamp column: the time when the record was loaded into the fact table When the fact row (or dimension row) was loaded into data warehouse data store.

5 The users will be using the data warehouse to do analysis in six business areas: product sales, subscription sales, subscriber profitability, supplier performance, CRM campaign segmentation, and CRM campaign results.

6 Product Sales A product sales event happens when a customer is buying a product, rather than subscribing to a package. The roles (the who, where, and what) in this event are the customer, product, and store. The levels (or in dimensional modeling terms, the measures) are the quantity, unit price, value, direct unit cost, and indirect unit cost. Put the measures in the fact table and the roles (plus dates) in the dimension tables. The business events become the fact table row.

7 Product Sales fact table and its dimensions

8 quantity, unit_price, and unit_cost measures are derived from the source system. But other three measures (sales_value, sales_cost, and margin) are calculated. They are defined as follows: sales_value = unit_price * quanti sales_cost = unit_cost * quantity margin = sales_value – sales_cost The four keys in the Product Sales fact table link the fact table with the four dimensions.

9 Grain Grain is the smallest unit of occurrence of the business event in which the event is measured. In other words, grain is completing this sentence: “One row in the fact table corresponds to....” In this case, the grain is each item sold—one row in the Product Sales fact table corresponds to each item sold. Simple measure: sales value, sales cost, margin

10 Product Sales table (and its dimensions) with timestamp columns

11


Download ppt "Fact Table The fact table stores business events. The attributes explain the conditions of the entity at the time the business event happened."

Similar presentations


Ads by Google