MSBI - SSAS

Lab 9

  1. Create a SSAS project

    • Data Sources

    • Data Source Views

      Data Source Views helps to choose which table should participate in the SSAS project. It also helps you decouple physical database structure from SSAS database structure.

    • Cubes

      Cubes defines measures and dimensions for your data. You can do calculations in Cubes.

      Data of SSAS database and RDBMS database is out of synch. So you need to process data firstly.

      You can see the data in Browser.

      MDX is the Query language for SSAS Cube storage.

Lab 10

  1. Time Series

    Create a time dimension table and connect it to your fact table.

  2. Dimension Usage

    Dimension usage defines the relationships between a cube dimension and the measure groups in a cube. When you add a database dimension or measure group to a cube, SSAS tries to determine dimension usage by examining relationships between the dimension tables and fact tables in the cube's data source view, and by examining the relationships between attributes in dimensions.

  3. Connect to Excel

    Only developer can use Browser to build report. In order to show results to customers it's better to import SSAS database into Excel.

Lab 14

  1. Hierarchical Dimensions

    You need to build hierarchies before analyzing data. You can use self-join to create hierarchies. After that, remember to design hierarchies in Dimension Structure.

Lab 17

  1. KPI

    A KPI (Key Performance Indicator), in a tabular model, is used to gauge performance of a value, defined by a Base measure, against a Target value, also defined by a measure or by an absolute value.

    Example

    • Value Expression
      [Measures].[Customer Amount]

    • Goal Expression
      [Measures].[Customer Amount] + 1000

    • Status

      Case
          when [Measures].[Customer Amount] > 1000
            then 1
          when [Measures].[Customer Amount] < 1000
            then -1
          else 0
      End
      
    • Trend

      Case
          when (([Time].[Year].[prevmember], [Measures].[Customer Amount]) < [Measures].[Customer Amount])
            then 1
          when (([Time].[Year].[prevmember], [Measures].[Customer Amount]) > [Measures].[Customer Amount])
            then -1
          else 0
      End
      
    • Results

      KPI

Resources

Lab 19

  1. Calculations

    A calculation is a Multidimensional Expressions (MDX) expression or script that is used to define a calculated member, a named set, or a scoped assignment in a cube in Microsoft SQL Server Analysis Services.

    • Calculated Members

      Calculated members are members of a dimension or a measure group that are defined based on a combination of cube data, arithmetic operators, numbers, and functions.

    • Named Sets

      A named set is a CREATE SET MDX statement expression that returns a set.

    • Script Commands

      A script command is an MDX script, included as part of the definition of the cube. Script commands let you perform almost any action that is supported by MDX on a cube, such as scoping a calculation to apply to only part of the cube.

Resources

Lab 21

  1. Reference

    A referenced dimension relationship allows us to create a relationship between a measure group and a dimension that is indirectly related to the measure group using an intermediate dimension.

    Reference
  2. Materialize

    When we check the materialize option, the link between the referenced dimension and the facts is materialized. This leads to slower cube processing but better cube query performance.

  3. Many-to-Many Relationship

    In Analysis Services, you define a many-to-many relationship between a dimension and a measure group by specifying an intermediate fact table that is joined to the dimension table.

    Many-to-Many

Resources

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末其障,一起剝皮案震驚了整個(gè)濱河市蚕愤,隨后出現(xiàn)的幾起案子陕凹,更是在濱河造成了極大的恐慌饥瓷,老刑警劉巖蕴忆,帶你破解...
    沈念sama閱讀 217,907評(píng)論 6 506
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件躏精,死亡現(xiàn)場離奇詭異卫枝,居然都是意外死亡惩系,警方通過查閱死者的電腦和手機(jī)刻诊,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,987評(píng)論 3 395
  • 文/潘曉璐 我一進(jìn)店門防楷,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人则涯,你說我怎么就攤上這事复局。” “怎么了粟判?”我有些...
    開封第一講書人閱讀 164,298評(píng)論 0 354
  • 文/不壞的土叔 我叫張陵亿昏,是天一觀的道長。 經(jīng)常有香客問我档礁,道長角钩,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,586評(píng)論 1 293
  • 正文 為了忘掉前任呻澜,我火速辦了婚禮递礼,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘羹幸。我一直安慰自己脊髓,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,633評(píng)論 6 392
  • 文/花漫 我一把揭開白布栅受。 她就那樣靜靜地躺著将硝,像睡著了一般。 火紅的嫁衣襯著肌膚如雪屏镊。 梳的紋絲不亂的頭發(fā)上依疼,一...
    開封第一講書人閱讀 51,488評(píng)論 1 302
  • 那天,我揣著相機(jī)與錄音闸衫,去河邊找鬼涛贯。 笑死,一個(gè)胖子當(dāng)著我的面吹牛蔚出,可吹牛的內(nèi)容都是我干的弟翘。 我是一名探鬼主播,決...
    沈念sama閱讀 40,275評(píng)論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼骄酗,長吁一口氣:“原來是場噩夢(mèng)啊……” “哼稀余!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起趋翻,我...
    開封第一講書人閱讀 39,176評(píng)論 0 276
  • 序言:老撾萬榮一對(duì)情侶失蹤睛琳,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體师骗,經(jīng)...
    沈念sama閱讀 45,619評(píng)論 1 314
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡历等,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,819評(píng)論 3 336
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了辟癌。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片寒屯。...
    茶點(diǎn)故事閱讀 39,932評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖黍少,靈堂內(nèi)的尸體忽然破棺而出寡夹,到底是詐尸還是另有隱情,我是刑警寧澤厂置,帶...
    沈念sama閱讀 35,655評(píng)論 5 346
  • 正文 年R本政府宣布菩掏,位于F島的核電站,受9級(jí)特大地震影響昵济,放射性物質(zhì)發(fā)生泄漏智绸。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,265評(píng)論 3 329
  • 文/蒙蒙 一砸紊、第九天 我趴在偏房一處隱蔽的房頂上張望传于。 院中可真熱鬧,春花似錦醉顽、人聲如沸沼溜。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,871評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽系草。三九已至,卻和暖如春唆涝,著一層夾襖步出監(jiān)牢的瞬間找都,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 32,994評(píng)論 1 269
  • 我被黑心中介騙來泰國打工廊酣, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留能耻,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 48,095評(píng)論 3 370
  • 正文 我出身青樓亡驰,卻偏偏與公主長得像晓猛,于是被迫代替她去往敵國和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子凡辱,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,884評(píng)論 2 354

推薦閱讀更多精彩內(nèi)容

  • 久違的晴天戒职,家長會(huì)。 家長大會(huì)開好到教室時(shí)透乾,離放學(xué)已經(jīng)沒多少時(shí)間了洪燥。班主任說已經(jīng)安排了三個(gè)家長分享經(jīng)驗(yàn)磕秤。 放學(xué)鈴聲...
    飄雪兒5閱讀 7,523評(píng)論 16 22
  • 今天感恩節(jié)哎,感謝一直在我身邊的親朋好友捧韵。感恩相遇市咆!感恩不離不棄。 中午開了第一次的黨會(huì)再来,身份的轉(zhuǎn)變要...
    迷月閃星情閱讀 10,564評(píng)論 0 11
  • 可愛進(jìn)取床绪,孤獨(dú)成精。努力飛翔其弊,天堂翱翔。戰(zhàn)爭美好膀斋,孤獨(dú)進(jìn)取梭伐。膽大飛翔,成就輝煌仰担。努力進(jìn)取糊识,遙望,和諧家園摔蓝÷该纾可愛游走...
    趙原野閱讀 2,727評(píng)論 1 1
  • 在妖界我有個(gè)名頭叫胡百曉,無論是何事贮尉,只要找到胡百曉即可有解決的辦法拌滋。因?yàn)槭侵缓偞蠹乙杂瀭饔灲形摇皟A城百曉”,...
    貓九0110閱讀 3,261評(píng)論 7 3