SlideShare a Scribd company logo
1 of 12
Download to read offline
CUBE DESIGN
BY HANNES MEYER


OnLine Analytical Processing OLAP
Agenda
  What are cubes?
  Multidimensionality

  Storage of multidimensional data.

  Hierarchies

  Operations

  Demo
What are cubes?
    Multi-dimensional representation of data
What are cubes (cont.)?
  syn: Hypercube, multidimensional database (MDB),
   olap cube
  Cubes can have more than three dimensions
Fact Tables
    Contain numerical measurements of a certain
     business process.
       E.g.   $12.000 sales in NY store on 12-01-08
    Additionally foreign keys to different dimension
     tables
       E.g.   further store/sales person information
    Center in star schema
Dimension Tables
  Contain attributes by which data can be grouped
  e.g. city/region of store, product category

  Linked to the fact table via their primary keys

  Slowly changing dimensions: dimensions which

   change over time. Can be dealt with in 3 ways:
       Overwritingold values
       Add new row to table, distinguish records by versioning

       Add new column (attribute) to existing row
Data Storage Models
    relational databases (ROLAP)
       Datain tables
       Summaries stored in precalculated tables

    multi-dimensional databases (MOLAP)
       Data  in multidimensional arrays
       + Less disk space

       + Better Performance (precalculated aggregates)

       - Time to aggregate & calculate

       - Updates require recalculation

    Hybrid (HOLAP)
Hierarchies
    Grouping of dimensions         e.g. country -> sales
    e.g. month -> semester -        region -> state -> city
     > quartal -> year               -> store
    2008                           Germany
       H1   2008                      Southern    germany
         Q1      2008                   BaWue
               Jan 2008                       Stuttgart
                                                    Store A
               Feb 2008
                                                    Store B
               March 2008
         Q2      2008 …                 Bavaria
                                               Munich
       H2   2008 …                                Store A B C
Operations: Slice
    Slicing is the process of retrieving a block of data
     from a cube by filtering on one dimension
Operations: Dice
    Dicingis the process of retrieving a block of data
     from a cube by filtering on all dimensions
Operations: Drill Up/ Down
  Drilling up: Presenting data at a higher level on the
   hierarchy e.g. Store -> Region
  Drilling Down: Presenting data at a lower level on
   the hierarchy Region -> Store
Building the cube in SSAS
    Preconditions
       Connecting  datasources
       Defining views

       Selecting dimensions

  Define fact & dimension tables & time dimension
  Select measures

  Deploy & query the cube

   Demo

More Related Content

Similar to Olap Cube Design

Using Continuous Etl With Real Time Queries To Eliminate My Sql Bottlenecks
Using Continuous Etl With Real Time Queries To Eliminate My Sql BottlenecksUsing Continuous Etl With Real Time Queries To Eliminate My Sql Bottlenecks
Using Continuous Etl With Real Time Queries To Eliminate My Sql BottlenecksMySQLConference
 
The Yahoo Open Stack
The Yahoo Open StackThe Yahoo Open Stack
The Yahoo Open StackMegan Eskey
 
Gmr Highload Presentation Revised
Gmr Highload Presentation RevisedGmr Highload Presentation Revised
Gmr Highload Presentation RevisedOntico
 
Gmr Highload Presentation
Gmr Highload PresentationGmr Highload Presentation
Gmr Highload PresentationOntico
 
Enterprise PHP Development (Dutch PHP Conference 2008)
Enterprise PHP Development (Dutch PHP Conference 2008)Enterprise PHP Development (Dutch PHP Conference 2008)
Enterprise PHP Development (Dutch PHP Conference 2008)Ivo Jansch
 
Architecting a Data Warehouse: A Case Study
Architecting a Data Warehouse: A Case StudyArchitecting a Data Warehouse: A Case Study
Architecting a Data Warehouse: A Case StudyMark Ginnebaugh
 
Bcm Best Practise & Local Challenges
Bcm Best Practise & Local ChallengesBcm Best Practise & Local Challenges
Bcm Best Practise & Local Challengesbudzeg
 
Internationalisierung Barcampbodensee Share
Internationalisierung Barcampbodensee ShareInternationalisierung Barcampbodensee Share
Internationalisierung Barcampbodensee Sharekindo
 

Similar to Olap Cube Design (10)

Using Continuous Etl With Real Time Queries To Eliminate My Sql Bottlenecks
Using Continuous Etl With Real Time Queries To Eliminate My Sql BottlenecksUsing Continuous Etl With Real Time Queries To Eliminate My Sql Bottlenecks
Using Continuous Etl With Real Time Queries To Eliminate My Sql Bottlenecks
 
The Yahoo Open Stack
The Yahoo Open StackThe Yahoo Open Stack
The Yahoo Open Stack
 
Gmr Highload Presentation Revised
Gmr Highload Presentation RevisedGmr Highload Presentation Revised
Gmr Highload Presentation Revised
 
Gmr Highload Presentation
Gmr Highload PresentationGmr Highload Presentation
Gmr Highload Presentation
 
Enterprise PHP Development (Dutch PHP Conference 2008)
Enterprise PHP Development (Dutch PHP Conference 2008)Enterprise PHP Development (Dutch PHP Conference 2008)
Enterprise PHP Development (Dutch PHP Conference 2008)
 
Architecting a Data Warehouse: A Case Study
Architecting a Data Warehouse: A Case StudyArchitecting a Data Warehouse: A Case Study
Architecting a Data Warehouse: A Case Study
 
Bcm Best Practise & Local Challenges
Bcm Best Practise & Local ChallengesBcm Best Practise & Local Challenges
Bcm Best Practise & Local Challenges
 
Groovy Finance
Groovy FinanceGroovy Finance
Groovy Finance
 
Internationalisierung Barcampbodensee Share
Internationalisierung Barcampbodensee ShareInternationalisierung Barcampbodensee Share
Internationalisierung Barcampbodensee Share
 
From Work To Word
From Work To WordFrom Work To Word
From Work To Word
 

Recently uploaded

[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 

Recently uploaded (20)

[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Olap Cube Design

  • 1. CUBE DESIGN BY HANNES MEYER OnLine Analytical Processing OLAP
  • 2. Agenda   What are cubes?   Multidimensionality   Storage of multidimensional data.   Hierarchies   Operations   Demo
  • 3. What are cubes?   Multi-dimensional representation of data
  • 4. What are cubes (cont.)?   syn: Hypercube, multidimensional database (MDB), olap cube   Cubes can have more than three dimensions
  • 5. Fact Tables   Contain numerical measurements of a certain business process.   E.g. $12.000 sales in NY store on 12-01-08   Additionally foreign keys to different dimension tables   E.g. further store/sales person information   Center in star schema
  • 6. Dimension Tables   Contain attributes by which data can be grouped   e.g. city/region of store, product category   Linked to the fact table via their primary keys   Slowly changing dimensions: dimensions which change over time. Can be dealt with in 3 ways:   Overwritingold values   Add new row to table, distinguish records by versioning   Add new column (attribute) to existing row
  • 7. Data Storage Models   relational databases (ROLAP)   Datain tables   Summaries stored in precalculated tables   multi-dimensional databases (MOLAP)   Data in multidimensional arrays   + Less disk space   + Better Performance (precalculated aggregates)   - Time to aggregate & calculate   - Updates require recalculation   Hybrid (HOLAP)
  • 8. Hierarchies   Grouping of dimensions   e.g. country -> sales   e.g. month -> semester - region -> state -> city > quartal -> year -> store   2008   Germany   H1 2008   Southern germany   Q1 2008   BaWue   Jan 2008   Stuttgart   Store A   Feb 2008   Store B   March 2008   Q2 2008 …   Bavaria   Munich   H2 2008 …   Store A B C
  • 9. Operations: Slice   Slicing is the process of retrieving a block of data from a cube by filtering on one dimension
  • 10. Operations: Dice   Dicingis the process of retrieving a block of data from a cube by filtering on all dimensions
  • 11. Operations: Drill Up/ Down   Drilling up: Presenting data at a higher level on the hierarchy e.g. Store -> Region   Drilling Down: Presenting data at a lower level on the hierarchy Region -> Store
  • 12. Building the cube in SSAS   Preconditions   Connecting datasources   Defining views   Selecting dimensions   Define fact & dimension tables & time dimension   Select measures   Deploy & query the cube    Demo