Measures in the Fact Tables
The values that quantify facts are usually numeric, and are often referred to as measures. Measures are typically additive along all dimensions, such as Quantity in a sales fact table. A sum of Quantity by customer, product, time, or any combination of these dimensions results in a meaningful value.
Additive - Additive measures are facts that can be added up through all of the dimensions in the fact table. A sales fact is a good example for additive fact.
Semi-Additive - Measures that can be summed up for some of the dimensions in the fact table, but not the others.
Eg: quantity-on-hand can be added along the Warehouse dimension to achieve the total-quantity-on-hand
Non-Additive - Measures that cannot be added along any dimension are truly non-additive. Non-additive measures can often be combined with additive measures to create new additive measures
Eg: Sale Price =Quantity*Price
Facts which have percentages, ratios calculated.
Calculated Measures - A calculated measure is a measure that results from applying a function to one or more measures.
Calculated measures may be pre-computed during the load process and stored in the fact table, or they may be computed on the fly as they are used. Determination of which measures should be pre-computed is a design consideration
Factless Fact - In the real world, it is possible to have a fact table that contains no measures or facts. These tables are called “Factless Fact tables”.
Eg: A fact table which has only product key and date key is a factless fact. There are no measures in this table. But still you can get the number products sold over a period of time.
Snapshot - This type of fact table describes the state of things in a particular instance of time, and usually includes more semi-additive and non-additive facts. The second example presented here is a snapshot fact table
The values that quantify facts are usually numeric, and are often referred to as measures. Measures are typically additive along all dimensions, such as Quantity in a sales fact table. A sum of Quantity by customer, product, time, or any combination of these dimensions results in a meaningful value.
Additive - Additive measures are facts that can be added up through all of the dimensions in the fact table. A sales fact is a good example for additive fact.
Semi-Additive - Measures that can be summed up for some of the dimensions in the fact table, but not the others.
Eg: quantity-on-hand can be added along the Warehouse dimension to achieve the total-quantity-on-hand
Non-Additive - Measures that cannot be added along any dimension are truly non-additive. Non-additive measures can often be combined with additive measures to create new additive measures
Eg: Sale Price =Quantity*Price
Facts which have percentages, ratios calculated.
Calculated Measures - A calculated measure is a measure that results from applying a function to one or more measures.
Calculated measures may be pre-computed during the load process and stored in the fact table, or they may be computed on the fly as they are used. Determination of which measures should be pre-computed is a design consideration
Factless Fact - In the real world, it is possible to have a fact table that contains no measures or facts. These tables are called “Factless Fact tables”.
Eg: A fact table which has only product key and date key is a factless fact. There are no measures in this table. But still you can get the number products sold over a period of time.
Snapshot - This type of fact table describes the state of things in a particular instance of time, and usually includes more semi-additive and non-additive facts. The second example presented here is a snapshot fact table
thanks for your information swathi
ReplyDelete