Friday, October 9, 2020

What is Fact Table?

Fact table stores the measures of the business process event and associates them with the descriptive context (dimension tables). So, there are two kinds of elements contained in the fact table. They are the measures (usually numeric, e.g. UnitSold, AmountSold) and the dimension key.

The row in the fact table is representing the defined grain of it. For example, if we define the grain as "Sales invoice", the fact table may contain DateKey, StoreKey, SalesPersonKey, UnitSold and AmountSold. Otherwise, if the grain is "Sales Invoice Line", the fact tables may contain DateKey, StoreKey, SalesPersonKey, ProductKey, LineNum, UnitSold and AmountSold.

There are various techniques for modeling fact tables as below. We will briefly describe them in the coming posts.














No comments:

Post a Comment

Extract: Performance Tips

Below listed some common performance tips for extract queries. Extract required columns only and specify in the query, avoid select * Extrac...