SSAS学习研究

最近对微软的SSAS产品很感兴趣,但是里面一些名词看着经常云山雾罩,写个小结算是学习一下:

度量值(Measures):就是SQL结果中各种聚合函数的计算结果,例如总和sum()、计数count()、百分比sum( Case When Result = 'Win' Then 1 Else 0 End ) / Count(*) 或者sum( Case When Result = 'Win' Then 1 Else 0 End ) / Sum( Case When Result <> '' Then 1 Else 0 End )、最小值min()、最大值max()或平均值avg()的数值。

维度(Dimensions):各种在ssas模型中和fact表产生关联的dim表,特点是都有一个key是唯一值,比如员工id,区域id,这个id会关联在fact表中。

维度属性(Dimension attributes):是维度中的命名项,类似于表中的列。 在本示例中,“销售区域”维度属性包含“国家/地区分组”(欧洲、北美和太平洋地区)、“国家/地区”(加拿大、美国)以及“区域”(中部、东北、西北、东南和西南)。

每个属性都具有与其关联的数据值或成员的集合。 在我们的示例中,“国家/地区分组”属性的成员包括欧洲、北美和太平洋地区。 成员 表示属于某个属性的实际数据值。

are the named items within a dimension, similar to columns in a table. In this example, the Sales Territory dimension attributes consist of Country Group (Europe, North America, Pacific), Country (Canada, United States), and Region (Central, Northeast, Northwest, Southeast, Southwest).

Each attribute has a collection of data values, or members, associated with it. In our example, members of the Country Group attribute are Europe, North America, and Pacific. Members refers to the actual data values that belong to an attribute.

 

先这样,后面更新。

posted @ 2020-01-20 15:12  彼岸的天堂  阅读(233)  评论(0编辑  收藏  举报