加性、半加性和非加性措施之间有什么区别
What's the difference between additive, semi-additive, and non-additive measures
我在网上搜索了数据仓库中加法、半加法和非加法的区别。我找到了一些结果,但我很难理解其中的差异,因为它们不是示例。能否请您举例说明加法、半加法和非加法的区别。
The numeric measures in a fact table fall into three categories. The most flexible and useful facts are fully additive; additive measures can be summed across any of the dimensions associated with the fact table.
完全加性度量的一个示例是销售额(从商店购买)。您可以添加每小时销售额以获得一天、一周、一个月、一个季度或一年的销售额。您可以添加跨商店或区域的销售额。
Semi-additive measures can be summed across some dimensions, but not all; checking account or savings account balance amounts are common semi-additive facts.
您可以从交易文件中重新创建余额,但添加 10 月、11 月和 12 月(跨时间维度)的余额没有任何意义。
Finally, some measures are completely non-additive, such as ratios. A good approach for non-additive facts is, where possible, to store the fully additive components of the non-additive measure and sum these components into the final answer set.
最后,您计算最终的非加性事实。
强调,通常,非添加剂是平均值、百分比和比率,对它们进行额外的聚合是无关紧要的(例如对产品的销售比率求和 2 根本没有意义),
因此,非附加事实不应存储在事实 table 中,并且通常会在事实 table.
中对附加事实进行操作
来源:
[1]
我在网上搜索了数据仓库中加法、半加法和非加法的区别。我找到了一些结果,但我很难理解其中的差异,因为它们不是示例。能否请您举例说明加法、半加法和非加法的区别。
The numeric measures in a fact table fall into three categories. The most flexible and useful facts are fully additive; additive measures can be summed across any of the dimensions associated with the fact table.
完全加性度量的一个示例是销售额(从商店购买)。您可以添加每小时销售额以获得一天、一周、一个月、一个季度或一年的销售额。您可以添加跨商店或区域的销售额。
Semi-additive measures can be summed across some dimensions, but not all; checking account or savings account balance amounts are common semi-additive facts.
您可以从交易文件中重新创建余额,但添加 10 月、11 月和 12 月(跨时间维度)的余额没有任何意义。
Finally, some measures are completely non-additive, such as ratios. A good approach for non-additive facts is, where possible, to store the fully additive components of the non-additive measure and sum these components into the final answer set.
最后,您计算最终的非加性事实。
强调,通常,非添加剂是平均值、百分比和比率,对它们进行额外的聚合是无关紧要的(例如对产品的销售比率求和 2 根本没有意义), 因此,非附加事实不应存储在事实 table 中,并且通常会在事实 table.
中对附加事实进行操作来源: [1]