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):是維度中的命名項,相似於表中的列。 在本示例中,「銷售區域」維度屬性包含「國家/地區分組」(歐洲、北美和太平洋地區)、「國家/地區」(加拿大、美國)以及「區域」(中部、東北、西北、東南和西南)。this

每一個屬性都具備與其關聯的數據值或成員的集合。 在咱們的示例中,「國家/地區分組」屬性的成員包括歐洲、北美和太平洋地區。 成員 表示屬於某個屬性的實際數據值。ci

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.it

 

先這樣,後面更新。io

相關文章
相關標籤/搜索