Facts for measurements

Facts for measurements

承载度量的事实

Factsare the measurements that result from a business process event and are almost always numeric. A single fact table row has a one-to-one relationship to a measurement event as described by the fact table’s grain. Thus a fact table corresponds to a physical observable event, and not to the demands of a particular report. Within a fact table, only facts consistent with the declared grain are allowed. For example, in a retail sales transaction, the quantity of a product sold and its extended price are good facts, whereas the store manager’s salary is disallowed.

事实是业务过程事件所产生的度量,几乎总是数值型。事实表的一行与一个度量事件一一对应,这一对应关系由事实表的粒度描述。因此事实表对应的是物理上可观察的事件,而不是某个特定报表的需求。在事实表内部,只允许存在与所声明粒度一致的事实。例如,在零售销售事务中,售出商品的数量和扩展价格是好的事实,而门店经理的工资则不允许出现。