How to build your own… Super Model Dimensional Modelling for Analysis Services Darren Gosbell Principal Consultant - James & Monroe

Slides:



Advertisements
Similar presentations
Dimensional Modeling.
Advertisements

Tips and Tricks for Dimensional Modeling
CHAPTER OBJECTIVE: NORMALIZATION THE SNOWFLAKE SCHEMA.
Cognos 8 Training Session
BY LECTURER/ AISHA DAWOOD DW Lab # 2. LAB EXERCISE #1 Oracle Data Warehousing Goal: Develop an application to implement defining subject area, design.
Copyright © Starsoft Inc, Data Warehouse Architecture By Slavko Stemberger.
Dimensional Modeling Business Intelligence Solutions.
Dimensional Modeling CS 543 – Data Warehousing. CS Data Warehousing (Sp ) - Asim LUMS2 From Requirements to Data Models.
An Introduction to Dimensional Data Warehouse Design Presented by Joseph J. Sarna Jr. JJS Systems, LLC.
Hachim Haddouti, adv. DBMS & DW CSC5301, Ch6 Chapter 6: The Big Dimensions Adv. DBMS & DW Hachim Haddouti.
Data Warehousing Design Transparencies
Data Warehousing - 3 ISYS 650. Snowflake Schema one or more dimension tables do not join directly to the fact table but must join through other dimension.
CSE6011 Warehouse Models & Operators  Data Models  relations  stars & snowflakes  cubes  Operators  slice & dice  roll-up, drill down  pivoting.
Data Warehousing ISYS 650. What is a data warehouse? A data warehouse is a subject-oriented, integrated, nonvolatile, time-variant collection of data.
Lecture 5 CS.456 DATABASE DESIGN.
Jeremy Brinkman Director of Administrative Systems University of Northwestern Ohio Great Lakes Users’ Group Conference August 10-11,
ETL Design and Development Michael A. Fudge, Jr.
ITEC 3220A Using and Designing Database Systems
Sayed Ahmed Logical Design of a Data Warehouse.  Free Training and Educational Services  Training and Education in Bangla: Training and Education in.
Best Practices for Data Warehousing. 2 Agenda – Best Practices for DW-BI Best Practices in Data Modeling Best Practices in ETL Best Practices in Reporting.
ISV Innovation Presented by ISV Innovation Presented by Business Intelligence Fundamentals: Data Loading Ola Ekdahl IT Mentors 9/12/08.
Dimensional model. What do we know so far about … FACTS? “What is the process measuring?” Fact types:  Numeric Additive Semi-additive Non-additive (avg,
Dimensional Modeling Chapter 2. The Dimensional Data Model An alternative to the normalized data model Present information as simply as possible (easier.
Copyright© 2014, Sira Yongchareon Department of Computing, Faculty of Creative Industries and Business Lecturer : Dr. Sira Yongchareon ISCG 6425 Data Warehousing.
Data Warehousing Concepts, by Dr. Khalil 1 Data Warehousing Design Dr. Awad Khalil Computer Science Department AUC.
DIMENSIONAL MODELLING. Overview Clearly understand how the requirements definition determines data design Introduce dimensional modeling and contrast.
Chapter 1 Adamson & Venerable Spring Dimensional Modeling Dimensional Model Basics Fact & Dimension Tables Star Schema Granularity Facts and Measures.
Data Warehouse design models in higher education courses Patrizia Poščić, Associate Professor Danijela Subotić, Teaching Assistant.
Unit 2 Dimensional Modeling & Data Warehouse Design.
BI Terminologies.
Normalized model vs dimensional model
DIMENSIONAL MODELING MIS2502 Data Analytics. So we know… Relational databases are good for storing transactional data But bad for analytical data What.
MIS2502: Data Analytics Dimensional Data Modeling
Exercises for the Course Datawarehousing, SS 2002, Prof. R. Bayer, TUM Exercise Sheet 2 Exercise 4, Ch.2-5: Schema optimization Consider the data warehouse.
Designing a Data Warehousing System. Overview Business Analysis Process Data Warehousing System Modeling a Data Warehouse Choosing the Grain Establishing.
Dimensional Modelling
UNIT-II Principles of dimensional modeling
CMPE 226 Database Systems October 21 Class Meeting Department of Computer Engineering San Jose State University Fall 2015 Instructor: Ron Mak
Creating the Dimensional Model
Data Warehousing Multidimensional Analysis
1 Agenda – 04/02/2013 Discuss class schedule and deliverables. Discuss project. Design due on 04/18. Discuss data mart design. Use class exercise to design.
ISAM 5931: Data Warehousing & Data Mining Group Project submitted by : Mudassar Hakim & Gaurav Wadhwani.
June 08, 2011 How to design a DATA WAREHOUSE Linh Nguyen (Elly)
Copyright© 2014, Sira Yongchareon Department of Computing, Faculty of Creative Industries and Business Lecturer : Dr. Sira Yongchareon ISCG 6425 Data Warehousing.
The Data Warehouse Chapter Operational Databases = transactional database  designed to process individual transaction quickly and efficiently.
Data modeling. Presentation by – Anupama Vudaru, Phani Kondapalli Content by – Prathibha Madineni, Subrahmanyam Kolluri October 2010.
1 Copyright © 2009, Oracle. All rights reserved. Oracle Business Intelligence Enterprise Edition: Overview.
By A Sai Krishna Geethika Lokanadham Mithun Rajanna KV Kumar Data warehousing for Risk Analysis.
Data warehousing for Profit Analysis By A Sai Krishna Geethika Lokanadham Mithun Rajanna KV Kumar.
Last Updated : 26th may 2003 Center of Excellence Data Warehousing Introductionto Data Modeling.
SQL Server Analysis Services Understanding Unified Dimension Model (UDM)
1 Dimensional Modelling III. 2 Dimensional Models A denormalized relational model Made up of tables with attributes Relationships defined by keys and.
Event Title Event Date. Module 02—Introduction to Dimensional Modeling Techniques Name Title Microsoft Corporation.
3 Copyright © 2006, Oracle. All rights reserved. Business, Logical, and Dimensional Modeling.
Building the Corporate Data Warehouse Pindaro Demertzoglou Data Resource Management.
INTELLIGENT DATA SOLUTIONS OM.
CMPE 226 Database Systems April 12 Class Meeting Department of Computer Engineering San Jose State University Spring 2016 Instructor: Ron Mak
Data Modelling for Beginners. About Coeo Senior DBA Microsoft Certified Master SQL Server Studying MSc Data Science at Dundee University.
Dimensional Modelling III
Applying Data Warehouse Techniques
Competing on Analytics II
MIS2502: Data Analytics Dimensional Data Modeling
CMPE 226 Database Systems April 11 Class Meeting
Applying Data Warehouse Techniques
An Introduction to Data Warehousing
Applying Data Warehouse Techniques
Adding Multiple Logical Table Sources
Dimensional Model January 16, 2003
Applying Data Warehouse Techniques
Applying Data Warehouse Techniques
Presentation transcript:

How to build your own… Super Model Dimensional Modelling for Analysis Services Darren Gosbell Principal Consultant - James & Monroe

Agenda Why build a Dimensional Model? What is a Dimensional Model? Overview of some modelling techniques. What functionality does Analysis Services provide to help us?

Further Reading “The Data Warehouse Toolkit” by Ralph Kimball & Margy Ross “The Data Warehouse Lifecycle Toolkit” by Ralph Kimball & Margy Ross

Why Build a Dimensional Model OLTP SystemDimensional Model Process OrientedSubject Oriented TransactionalAggregate CurrentHistoric

What is a Dimensional Model? A De-normalized database. Designed for ease of querying, not for transactional updates. Built to support aggregate queries Modelled around business subject areas.

Facts & Dimensions There are two main types of objects in a dimensional model – Facts are quantitative measures that we wish to analyse and report on. – Dimensions contain textual descriptors of the business. They provide context for the facts.

A Transactional Database OrderDetails OrderHeaderID ProductID Amount OrderHeader OrderHeaderID CustomerID OrderDate FreightAmount Products ProductID Description Size Customers CustomerID AddressID Name Addresses AddressID StateID Street States StateID CountryID Desc Countries CountryID Description

A Dimensional Model FactSales CustomerID ProductID TimeID SalesAmount Products ProductID Description Size Subcategory Category Customers CustomerID Name Street State Country Time TimeID Date Month Quarter Year

Star Schema ProductID TimeID CustomerID SalesAmount factSales ProductID ProductName SubCategoryName CategoryName dimProduct … dimCustomer … dimTime

Snowflake Schema ProductID TimeID CustomerID SalesAmount factSales ProductID SubcategoryID Description dimProduct SubcategoryID CategoryID Description dimSubCategory CategoryID Description dimCategory

Building a Model - Facts You have to talk to the “business”. Identify Facts by looking for quantitative values that are reported. Make sure the granularity is “right”.

Building a Model - Dimensions Identify Dimensions by listening for “by” words. Look for related attributes that should be part of a single dimension. Pay attention to how “Dimensions” change over time and in relation to each other.

Slowly Changing Dimensions - Handling Changes over time

If you don’t consider changes over time your model will start out like this…

… but ending up like this!

Type 1 Slowly Changing Dimension The simplest form Only updates existing records Overwrites history

Type 1 Slowly Changing Dimension CustomerIDCodeNameStateGender 1K001Miranda KerrNSWF CustomerIDCodeNameStateGender 1K001Miranda KerrVICF

Type 2 Slowly Changing Dimension Allows the recording of changes of state over time Generates a new record each time the state changes Usually requires the use of effective dates when joining to facts.

Type 2 Slowly Changing Dimension CustomerIDCodeNameStateGenderStartEnd 1K001Miranda KerrNSWF1/1/09 23/2/09 CustomerIDCodeNameStateGenderStartEnd 1K001Miranda KerrNSWF1/1/0923/2/09 2K001Miranda KerrVICF24/2/09

Type 3 Slowly Changing Dimension De-normalized change tracking Only keeps a limited history Stores changes in separate columns

Type 3 Slowly Changing Dimension CustomerIDCodeNameCurrent State GenderPrev State 1K001Miranda KerrF VIC NSW

Relationships between facts and dimensions

Regular Relationships Most Common relationship Works like an inner join between the fact and dimension

DEMO Regular Relationships

Many to Many Relationships Allows for the situation where you want to associate more than one member from a dimension with a single fact.

Scenario Bank Account Transactions - each one has an Account - Accounts have one or more Customers - Each Customer has one or more Accounts

DEMO Many-to-Many Relationships

PersonAccountAmount Albert#1$1,010 Albert#2$2,010 Betty#2$2,010 TOTAL$5,030 $3,020 Bank Accounts Account #1 $1,010 Account #2 $2,010 AlbertBetty

Bank Accounts The relational schema

Referenced Relationships Joins a dimension to a fact table through another “intermediate” dimension

DEMO Reference Relationships

CustomerIDFullNameCityID 100Albert1 SELECT {[Measures].[Amount]} ON Columns {[Geography].[City].&[1]} ON ROWS FROM [Balances] TimeID CustomerID 100 Amount $ $2000 CityID 1 CityName Adelaide Geography Customer 101Betty1

Materialized Reference Relationships CustomerID 100 FullName Albert CityID 1 1 CityName Adelaide TimeID CustomerID 100 Amount $1000 CityID 1

Fact Relationships Used when a table plays both the role of a dimension and a fact. Sometimes also known as a degenerate dimension.

DEMO Fact Relationships

No Relationship Used for controlling calculations when you want to influence the context of the calculation without changing the context of the data.

DEMO No Relationship

Key Take Aways Why to build a dimensional model. What makes up a dimensional model. How implement various modelling techniques in Analysis Services (2005 & 2008).

Thank You Darren Gosbell