SSAS几个名词
度量維度(measures group)
在數據方中的一些概念如維度(Dimension),度量(Measure),度量組(measure group),層次(hierarchy),級別(level)是很容易理解的,有個概念 度量維度(measures group)讓人理解起來非常困難。????????MSDN的解釋如下,"A measures dimension is the dimension that contains all of the measures in a cube. A measures dimension is a special type of dimension in which the members are typically aggregated (generally by sum or by count) based on the current member of each dimension attribute with which a specified measure exists"
??????? 仔細研究以后發現,其實此處的度量維度就是指所有的度量,換句話說度量被當成了一種特殊的維度,這個維度如果有層次結構的話,他的層次結構也只能有一個級別,只所以混淆是因為它也是一種維度,不過是特殊的維度。 http://www.cnblogs.com/anshangcun/archive/2007/10/30/943360.html 度量值組 度量值組?(Measure Group)“度量值組”是 SQL Server Analysis Services 中一個多維數據集的相關度量值集合(通常是來自同一事實數據表... ------------------- Measures and Measure Groups A measure represents a column that contains quantifiable data, usually numeric, that can be aggregated. A measure is generally mapped to a column in a fact table.?
? Attribute columns from dimension tables can be used to define measures, but such measures are typically semiadditive or nonadditive in terms of their aggregation behavior.?
? You can also define a measure as a calculated member by using a Multidimensional Expressions (MDX) to provide a calculated value for a measure based on other measures in the cube.?
Measure Groups
? In a cube, measures are grouped by their underlying fact tables into measure groups. Measure groups are used to associate dimensions with measures.?
? The fact table contains two basic types of columns: attribute columns and measure columns. Attribute columns are used to create foreign key relationships to dimension tables, so that the quantifiable data in the measure columns can be organized by the data contained in the dimension tables.Attribute columns are also used to define the granularity of a fact table and its measure group.
Granularity
? Granularity refers to the level of detail supported by a fact table.?
? The granularity of a measure group can never be set finer than the lowest level of the dimension from which the measure group is viewed, but the granularity can be made coarser by using additional attributes.?
Aggregate Functions
??When a dimension is used to organize measures in a measure group, the measure is summarized along the hierarchies contained in that dimension. The summation behavior depends on the aggregate function specified for the measure. http://www.cnblogs.com/csgashine/articles/559377.html
轉載于:https://www.cnblogs.com/taoyizhuoma/p/6009876.html
總結
- 上一篇: 数论概论学习笔记(一)——勾股数
- 下一篇: bzoj 1654: [Usaco200