SSAS Beginner’s Guide: Storage Structure

This is a second entry in a series on SQL Server Analysis Services (SSAS). To see the other blog entries on this tutorial, click on the SSAS Beginner’s Guide on the top bar.

Relational Databases

Let’s take a quick look at a relational database table of football players:

The table is structured in rows and columns. Note that the column names are fixed – they are not based on the data. This is a difference between relational databases and SSAS databases.

SSAS databases are typically loaded from the relational database to the SSAS database and a copy of the data stored in a different form in the SSAS database. Once the data has been copied, you can delete the relational database (This assumes you are using the default MOLAP option).

2 Dimensional SSAS Databases

SSAS databases are stored in multidimensional structures. Below is an example of an SSAS database with just 2 dimensions. This contains fantasy football points, so the “2” in the first row and first column is the fantasy football points that Reina received during the 11/Aug/2007 game week.

The grey area contains two dimensions: Players and Game Weeks. Each column header (and row label) is called a dimension member. Example dimension members are “Carragher” and “03/11/2007″. These dimension members are similar to column names, however they are based on data.

Each number in a cell is at the intersection of two dimension members. Take for instance Gerrard’s first match where he received 10 points. It is stored at the intersection of

  • “Gerrard”
  • and “11/08/2007″

Gerrard and “11/08/2007″ are coordinates to the cell containing 10. When you start writing MDX queries, you will try to find ways to reference these cells using coordinates.

The All Member aggregation is what is really useful in SSAS databases. It is a member that is added to each dimension when loading the data. The All Member cells are pre-calculated when loading the SSAS database data and are typically a sum. This member is physically stored and you can also query All Members just like any other member. The All Member aggregation above makes it easy to answer questions like, “What is the total number of points that Gerrard received?” The answer is found at the intersection of

  • “Gerrard”
  • And the Game Week’s “All Member”.

You can reference the All Members using the coordinate system just like any other member of the dimension.

3 Dimensional SSAS Database

Let’s take a look at a 3 dimensional SSAS database:

The diagram above shows most of the values stored in the 3 dimensional SSAS database. There are some values in the back of the cube that you can’t see without cutting the cube open, but they still exist.

The cube is shown so that the front pane is the same data as the two dimensional SSAS database above.

Just as a side note, although the diagram has two 10s on the cell for Gerrard on 11/08/2007, on the front in grey and on the top of the cell in white, the cell block itself only contains the number once. The cells can only contain one number and the numbers shown are for the 3D block, rather than a 2D pane. So the cell contains just 17, even though 17 is shown three times.

The only difference with 3D cubes is that locating a cell requires 3 coordinates instead of 2:

  • Game week
  • Player
  • Home/Away

The 3rd dimension, Home/Away, gives us more information about the scores compared to the 2 dimensional database. If you wanted to know how many points these players received for all Away matches, you would go to the intersection of these three coordinates:

  • Game week’s “All Member”
  • Player’s “All Member”
  • and Home/Away’s “Away” member

Here you will find the value “155”.

The cube can answer other questions. Although you cannot see it in the diagram, the cube stores total points that Gerrard received at home. You would find it at the intersection of

  • the game week’s “All Member”
  • “Gerrard”
  • “Home”.

This value would be found on the bottom plane just to the left of the value 155.

4 or More Dimensions

There is really no limit to the number of dimensions you can create in your database even though it might be difficult to visualize. Let’s say you want to track sales for the following:

  • the year 2007
  • the southeast region
  • the product “gizmo”
  • and the “Acme” store

You may not be able to see how all the data is stored, however this scenario does have 4 dimensions.

About Clay Lenhart

I am a DBA/Technical Architect for Latitude Group and love technology.
This entry was posted in SSAS and tagged , . Bookmark the permalink.

21 Responses to SSAS Beginner’s Guide: Storage Structure

  1. Trackback: Link to this post was added on our website to the [SSAS Articles]/[Design] section:

    http://www.ssas-info.com/analysis-services-articles/62-design/826-ssas-beginners-guide-storage-structure

  2. Pavan says:

    Excellent article.

  3. sally says:

    Nice simple article to read. Found this very helpful. Thank-you.

  4. William says:

    An excellent and helpful Beginner Guide based on deep understanding of SSAS. Thank you very much.

  5. Nick says:

    A nice example here illustrating the basics of dimensions

  6. kirankumar danda says:

    Excellent one for beginners ………..

  7. Santosh says:

    nice article for beginners

  8. Sumit says:

    Nicely explained. Could you direct me to one of your’s or another author’s tutorial on translating this excellently explained theoritical concept into SSAS implementation.

  9. Sushil says:

    Thanks
    excellent article .
    You cleared the concept of dimensions.

  10. Shoaib Anwar says:

    Very nice article Clay Lenhart. But i have confusion related to SSAS cube. In fact i am new to SSAS just want to explore myself . My concern is

    – What i know, SSAS cube pre aggregates data and stores to its specialized file system (MOLAP storage mode)
    – If there is no aggregation design associated with any partition of measure group means there is no pre aggregation available in the data?
    – Means data in specialized file system is just the copy of data RDMS or any data source? (with respect to given data grain)
    – When we explore or browse data with respect to dimension(s) / Hierarchies and facts, data from specialized files aggregates at run time? (if no aggregation design is associated)
    – The purpose of these aggregation designs are to pre aggregate data with respect to all dimension/ hierarchies?
    – Means if there is no aggregation design associated with any partition, no pre aggregated data available?

    Thanks in advance

    Regards,
    Shoaib Anwar

  11. cipto says:

    Excellent
    this really open my eye of dimension is

  12. I noticed your page’s ranking in google’s search results is very low.

    You are loosing a lot of traffic. You need high PageRank backlinks to rank in top ten. I know – buying them is too expensive.

    It’s better to own them. I know how to do that, just google it:
    Polswor’s Backlinks Source

  13. ちょうど5ヶ月前には、タグホイヤー大使のF1レーサーたちは、2007年ブラジルサンパウロ国際自動車連盟の1級の方程式選手権で記録した全ての前の3名の記録。アカザのコーニングはシーズン終瞭時は維持したタイトルで、その後は現在佳新ドライバーハミルトンと二回の世界チャンピオンメダリストアロンソ。パネライ時計コピーそして3月16日の日曜日、1級の方程式をオーストラリア大会でメルボルン再着火発動。トップな時計工場のように何度も自動車レース、スポンサーに参加して、そして自分の大使に登って表彰台で珍しくない;しかし三位と上位に登場の大使は初めて。ブラジルでの1級の方程式の大会で、三人ともかぶって最新の豪雅グランCarrera腕時計—デザインセンス源于伝奇と神話の色を示し、彼らは前衛的な潮流の投入と情熱。 http://www.gginza.com/%E6%99%82%E8%A8%88/%E3%83%AD%E3%83%AC%E3%83%83%E3%82%AF%E3%82%B9/daytona/f2274a6b7009b5d5.html

  14. それは数年を要したが、中国のブランドは私の提案に従って始めて、よりたぶん私よりも簡単に起こることになっていたことの自然経過を予測するけれども。それは中国人であることを誇りに思うならば、まじめに中国のハイエンドの腕時計をする唯一の方法です。ブランドコピーこの中の1つのフロントランナーは、中国のタイムキーパーと呼ばれる新しいブランドです。欧州に通されて、ブランドの漢字と中国で完全に造られる腕時計の数千ドルのレンジを促進することに取り組んでいます。しかし、彼らの価格はまだ少し高を比較することができるものに数千ドルを得ます。 http://www.gowatchs.com/brand-189.html

  15. ビトンコピー,グッチコピー,エルメスコピー,シャネルコピーを初め世界中 有名なスーパーコピーブランドを激安で通販しております,自1854年以来、見物する今のルイヴィトンは優れた品質、傑出なアイデアと工芸ファッション旅行芸術の象徴。製品のシリーズを含むハンドバッグ、旅行用品、小型皮具スーパーコピーブランド、スカーフやアクセサリー、履物、成衣、腕時計、高級ジュエリーや個性的なカスタマイズサービスなど。これらの製品を大切にし、代表しているのはルイヴィトンは卓越した工芸の承諾。スーパーコピーブランドルイヴィトン公式サイトでは、製品は男性、さんLVハンドバッグ、バッグ、財布、靴、腕時計、ベルト、宝石など、もっと新型LV製品画像価格及びLouis Vuittonブランドと完璧な技術、ルイヴィトン中国公式サイトにログインしてください! http://www.newkakaku.com/gb11.htm

  16. ビトンコピー,グッチコピー,エルメスコピー,シャネルコピーを初め世界中 有名なスーパーコピーブランドを激安で通販しております,自1854年以来、見物する今のルイヴィトンは優れた品質、傑出なアイデアと工芸ファッション旅行芸術の象徴。製品のシリーズを含むハンドバッグ、旅行用品、小型皮具スーパーコピーブランド、スカーフやアクセサリー、履物、成衣、腕時計、高級ジュエリーや個性的なカスタマイズサービスなど。これらの製品を大切にし、代表しているのはルイヴィトンは卓越した工芸の承諾。スーパーコピーブランドルイヴィトン公式サイトでは、製品は男性、さんLVハンドバッグ、バッグ、財布、靴、腕時計、ベルト、宝石など、もっと新型LV製品画像価格及びLouis Vuittonブランドと完璧な技術、ルイヴィトン中国公式サイトにログインしてください! http://www.msnbrand.com/goods-copy-4779.html

  17. もう長い間のない中国人と思った、私たちの報道掲示の主な著しい傾向は、西部地域の本当に目覚めました。中国三大経済地域で、西部は最も発達しても、少なくとも贅沢なブランド「浸透される」の地域。十年前から、中央政府は近年にもっと力を入れて、高まって与える西部地域の戦略を縮小し、大陸部と沿海都市間の格差。だから、西部の経済の急速な発展は、贅沢品消費も後を追う。 http://www.newkakaku.com/cq19.htm

  18. あなたが持っている控えめなロゴの上の12時のスムーズな広がりをバラバラにして、日付表示の上に3時に、スモールセコンドダイヤルの下の6時。視覚の関心の1つのビットは、このサブダイヤルで60赤で印刷されているがポップアップします。 スーパーコピーガガ・ミラノ時計 彼らは、パワーリザーブ表示を含むために使われる大きなダイヤルを持っていることができる間、彼らはその代わりに、それは運動の裏に場所を選びました、そこで、それはサファイアの可視表示を(サファイア結晶としてのフロントがあります)。 http://www.bestevance.com/rolex/sky/index.htm

  19. ブランドコピーN
    ブランドスーパーコピー通販専門店!人気N品激安!
    2023年新品種類がそろっています。
    品質がよい、価格が低い、実物写真!
    弊店のスーパーコピー時計は品質2年無料保証になります。
    日本全国送料で数量無料です。
    2023年新作高品質の腕時計ファッション業界に比類のない高品質だけでなく、唯一無二のデザインがあり秀逸な素材と抜群な作工は完璧に融合します。しかも、色々な商品をお客様に提供しています。この中で貴方の好きな商品を選ぶことができます。お客様の需求に満足する為に、最高なブランドコピー 代引き商品とサービスに提供されます。お客様の喜びさせることを保証します。お客様を歓迎して当店をご光臨賜ります。私達は長年の実体商店の販売経験を持って、あなたのために品質最上のブランドコピー時計、ブランドコピーバッグ、ブランドコピー財布。製品はされています高品質と低価格で提供,100%品質保証.★信用第一、良い品質、低価格は。広大な客を歓迎して買います!★送料無料(日本全国) ご注文を期待しています! ★ 税関の没収する商品は再度無料にして発送します https://www.bagb78.com/goods-1081.html

  20. 入金後すぐ発送して頂けました。テープをはがしやすくしてくださったり、梱包もとっても丁寧でその気遣いが嬉しかったです。使用感のある商品と記載されていたのですが、思っていた以上に綺麗でびっくりしました。
    丁寧な包装で届きました。プチプチで何重にもつつんであり、商品の箱も崩れることなく、また商品以外にも何か気づいたことがあれば問い合わせてほしいという手紙や今の時期だからこそのマスクだったりと、今までの楽天さんのショップの中で1番といっていいほど丁寧でした。ありがとうございました。 https://www.tentenok.com/product-11576.html

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>