Building a Cube in Analysis Services Step by Step and Best Practices



Similar documents
<Insert Picture Here> Extending Hyperion BI with the Oracle BI Server

Analysis Services Step by Step

Implementing Data Models and Reports with Microsoft SQL Server 20466C; 5 Days

Microsoft Data Warehouse in Depth

Microsoft Implementing Data Models and Reports with Microsoft SQL Server

Presented by: Jose Chinchilla, MCITP

SQL Server 2012 Business Intelligence Boot Camp

1. OLAP is an acronym for a. Online Analytical Processing b. Online Analysis Process c. Online Arithmetic Processing d. Object Linking and Processing

Course Outline: Course: Implementing a Data Warehouse with Microsoft SQL Server 2012 Learning Method: Instructor-led Classroom Learning

2074 : Designing and Implementing OLAP Solutions Using Microsoft SQL Server 2000

Implementing Data Models and Reports with Microsoft SQL Server

Implementing a Data Warehouse with Microsoft SQL Server 2012

Implementing a Data Warehouse with Microsoft SQL Server 2012 MOC 10777

Implementing Data Models and Reports with Microsoft SQL Server

Turning your Warehouse Data into Business Intelligence: Reporting Trends and Visibility Michael Armanious; Vice President Sales and Marketing Datex,

MS 20467: Designing Business Intelligence Solutions with Microsoft SQL Server 2012

SQL SERVER BUSINESS INTELLIGENCE (BI) - INTRODUCTION

Jet Data Manager 2012 User Guide

Implementing a Data Warehouse with Microsoft SQL Server 2012 (70-463)

SQL Server 2012 Tutorials: Analysis Services - Multidimensional Modeling

Course Outline. Module 1: Introduction to Data Warehousing

When to consider OLAP?

Oracle BI Suite Enterprise Edition

Designing Business Intelligence Solutions with Microsoft SQL Server 2012 Course 20467A; 5 Days

Implementing Data Models and Reports with Microsoft SQL Server 2012 MOC 10778

LEARNING SOLUTIONS website milner.com/learning phone

IS466 Decision Support Systems. SQL Server Business Intelligence Development Studio 2008 User Guide

Enterprise Performance Tuning: Best Practices with SQL Server 2008 Analysis Services. By Ajay Goyal Consultant Scalability Experts, Inc.

Oracle Business Intelligence Foundation Suite 11g Essentials Exam Study Guide

MS 50511A The Microsoft Business Intelligence 2010 Stack

Data Warehouse design

Course 6234A: Implementing and Maintaining Microsoft SQL Server 2008 Analysis Services

Migrating a Discoverer System to Oracle Business Intelligence Enterprise Edition

SAS Business Intelligence Online Training

COURSE 20463C: IMPLEMENTING A DATA WAREHOUSE WITH MICROSOFT SQL SERVER

Implementing a Data Warehouse with Microsoft SQL Server

High-Volume Data Warehousing in Centerprise. Product Datasheet

Designing a Dimensional Model

Business Intelligence, Data warehousing Concept and artifacts

Course 10777A: Implementing a Data Warehouse with Microsoft SQL Server 2012

SQL Server 2005 Features Comparison

Lost in Space? Methodology for a Guided Drill-Through Analysis Out of the Wormhole

Microsoft Services Exceed your business with Microsoft SharePoint Server 2010

Implementing a Data Warehouse with Microsoft SQL Server 2012

East Asia Network Sdn Bhd

Beta: Implementing a Data Warehouse with Microsoft SQL Server 2012

Implementing a Data Warehouse with Microsoft SQL Server

M Designing and Implementing OLAP Solutions Using Microsoft SQL Server Day Course

Correct Answer: J Explanation. Explanation/Reference: According to these references, this answer looks correct.

SQL SERVER SELF-SERVICE BI WITH MICROSOFT EXCEL

ORACLE OLAP. Oracle OLAP is embedded in the Oracle Database kernel and runs in the same database process

Implementing a Data Warehouse with Microsoft SQL Server 2012

IBM Cognos 8 Business Intelligence Analysis Discover the factors driving business performance

Driving Peak Performance IBM Corporation

TRANSFORMING YOUR BUSINESS

Implement a Data Warehouse with Microsoft SQL Server 20463C; 5 days

An Oracle White Paper March Managing Metadata with Oracle Data Integrator

Delivering Business Intelligence With Microsoft SQL Server 2005 or 2008 HDT922 Five Days

Implementing a Data Warehouse with Microsoft SQL Server

Business Benefits From Microsoft SQL Server Business Intelligence Solutions How Can Business Intelligence Help You? PTR Associates Limited

Budgeting and Planning with Microsoft Excel and Oracle OLAP

SQL Server Training Course Content

Big Data Analytics with IBM Cognos BI Dynamic Query IBM Redbooks Solution Guide

Practical meta data solutions for the large data warehouse

SAP Business Planning & Consolidation Discover its enhanced capabilities

For Sales Kathy Hall

Beyond Plateaux: Optimize SSAS via Best Practices

ETL-EXTRACT, TRANSFORM & LOAD TESTING

Building Views and Charts in Requests Introduction to Answers views and charts Creating and editing charts Performing common view tasks

Implementing a Data Warehouse with Microsoft SQL Server MOC 20463

COURSE OUTLINE MOC 20463: IMPLEMENTING A DATA WAREHOUSE WITH MICROSOFT SQL SERVER

Tutorials for Project on Building a Business Analytic Model Using Data Mining Tool and Data Warehouse and OLAP Cubes IST 734

Oracle Warehouse Builder 10g

SAP BO Course Details

MOC 20467B: Designing Business Intelligence Solutions with Microsoft SQL Server 2012

Business Intelligence for SUPRA. WHITE PAPER Cincom In-depth Analysis and Review

Optimizing Performance. Training Division New Delhi

Dimodelo Solutions Data Warehousing and Business Intelligence Concepts

Data warehousing/dimensional modeling/ SAP BW 7.3 Concepts

Microsoft. Course 20463C: Implementing a Data Warehouse with Microsoft SQL Server

Building Cubes and Analyzing Data using Oracle OLAP 11g

Oracle BI 11g R1: Build Repositories

An Architectural Review Of Integrating MicroStrategy With SAP BW

<Insert Picture Here> Introducing Data Modeling and Design with Oracle SQL Developer Data Modeler

SQL Server Analysis Services Complete Practical & Real-time Training

Evaluation Checklist Data Warehouse Automation

Microsoft Business Intelligence Platform

SQL Server Administrator Introduction - 3 Days Objectives

Creating Hybrid Relational-Multidimensional Data Models using OBIEE and Essbase by Mark Rittman and Venkatakrishnan J

Avoiding Common Analysis Services Mistakes. Craig Utley

Create a Balanced Scorecard

COURSE SYLLABUS COURSE TITLE:

Copyright 2013 OSIsoft, LLC. 1

QAD Business Intelligence Data Warehouse Demonstration Guide. May 2015 BI 3.11

IAF Business Intelligence Solutions Make the Most of Your Business Intelligence. White Paper November 2002

Transcription:

Building a Cube in Analysis Services Step by Step and Best Practices Rhode Island Business Intelligence Group November 15, 2012 Sunil Kadimdiwan InfoTrove Business Intelligence

Agenda Data Warehousing Introduction Star/Snowflake Schemas SQL Server Analysis Services Overview Components Questions?

Sunil Kadimdiwan: InfoTrove Inc. Working with SQL Server since 1993 Focusing on Business Intelligence solutions PowerPivot & Power View, Analysis Services, Reporting Services, Integration Services and SQL Server Frequent speaker: User Groups & Code Camps sunilk AT infotrove DOT com or 508-532-1180 Find me in LinkedIn: Sunil Kadimdiwan

What does a cube mean? Excel Demo CrossTab report a sophisticated one perhaps!

A simple example Order Date Product City Qty Unit Price Total Sales 10/22/09 Lock Washer 4 Seattle 200 $3.00 $600.00 01/14/10 Touring Rim Boston 5 $4000 $20000 Order Date = Date, Month/Week, Quarter,Year Product = Product, Subcategory, Category City = City, County, State, Region, Country, Territory Metrics/Measures = Qty, Unit Price, Sales Total

Another example A line item on a bill received from a doctor What are the dimensions to derive? Date (of treatment) Doctor (maybe called "provider") Patient Procedure Primary Diagnosis Location (doctor's office/hospital) Billing Organization (an organization the doctor belongs to) Responsible Party (patient or patient's legal guardian) Primary Payer (often an insurance plan) Secondary Payer (party's spouse's insurance plan) Etc.

Business Intelligence Architecture Monitoring & Administration Metadata Repository * PeopleSoft, Oracle, SAP, CRM

Star Schema A Star Schema contains a fact table and one or more dimension tables. 1. A Fact Table: Stores numeric fact (measures) such as Sales dollars, Costs, Unit Sales etc. 2. Dimension Tables: They surround the Fact table, and they store descriptive information about the measures The shape looks like a Star

Star Schema

Snowflake Schema

Analysis Services 2008 R2 4 th version of Analysis Services SQL Server 7.0, 2000, 2005 and 2008 Business Intelligence Development Studio SQL Server Management Studio

What is running? Hardware HP Pavilion dv6; Dual core, 8GB RAM Windows 7 Ultimate Software SQL Server 2008 R2 Analysis Services 2008 R2

Database environment Adventure Works DW 2008 R2 Contoso Retail DW

Analysis Services Database An Analysis Services database includes Data Source Data Source View Dimension Cube Security Role

Data Source Connection Defines how Analysis Services connects to a physical data store using a managed Microsoft.NET Framework or native OLE DB provider. The connection string contains server name, database, security, timeout, and other connection-related information. Analysis Services directly supports many data sources. Supported: Microsoft SQL Server databases and databases created by other products, including Oracle, DB2, and Teradata.

Connection to SQL Server Following providers will work: OLE DB provider for SQL Server SQL Native Client 10.0.NET Provider/SqlClient Data Provider (Avoid using.net data sources OLEDB is faster for processing in practices)

Data Source Views New feature Since AS 2005 and onwards A data source view is a logical representation of the data that is used by Analysis Services objects, built from the data sources already defined in the database. Can contain multiple Data Sources A data source view can contain relationships, calculated columns, and queries that are not present in the underlying data sources.

Dimension All dimensions are based on tables or views in a data source view. All dimensions are shared since AS 2005 The structure of a dimension is largely driven by the structure of the underlying dimension table or tables. The simplest structure is called a star schema, which is where each dimension is based on a single dimension table that is directly linked to the fact table by a primary key - foreign key relationship.

Dimension Consists of A dimension consists of: Attributes that describe the entity User-Defined Hierarchies that organize dimension members in meaningful ways such as Date -> Month -> Quarter -> Year

Attributes New feature since AS 2005 Containers of dimension members Typically have one-many relationships between attributes in the same dimension: All attributes implicitly related to the key

Measure Group In a cube, a measure is the set of values, usually numeric, that are based on a column in the fact table in the cube. A measure group contains one or more or all the measures from a single fact table. It can t contain measures from different fact table.

Measure Group Advantages Measure groups provide the following advantages: They can be partitioned and processed separately They allows to include measures from diff fact tables. They are grouped by granularity: Same measure group same granularity. Security can be applied to specific measure groups

Inside a Cube Measures and Measure Groups Dimensions Relationships Calculations Actions Partitions Perspectives

Types of Dimensions Different Dimension Relationships Regular Dimension Relationship Reference Dimension Relationship Fact Dimension Relationship Role Playing Dimension Parent-Child Hierarchy

Regular Dimension Relationships A traditional star schema design The Primary Key in the dimension table joins directly to Foreign Key in the fact table.

Reference Dimension Relationships Snowflake schema A Reference dimension using columns from multiple tables, or the dimension table links a dimension that is directly linked to the fact table.

Role Playing Dimension It is used in a cube more than one time, each time for a different purpose. Each role-playing dimension is joined to a fact table on a different foreign key. Example, you might add a Time dimension to a cube three times to track the times that products are ordered, products are shipped, Orders are due..

Parent-Child Hierarchy A parent-child hierarchy is a hierarchy in a standard dimension that contains a parent attribute. A parent attribute describes a self-join, within the same dimension table. Example: Employee Hierarchy An employee is an employee who reports to his/her manager. His manager is an employee as well Employee Key self joins to ParentEmployeeKey

Slowly Changing Dimension Some attribute values may change over time. Two basic techniques: Type 1 change Type 2 change

Slowly Changing Dimension Type 1 A Type 1 change, is to simply overwrite the old value with the new one. key salespersonid salesperson territory 101 405 tom jones Northeast 102 410 paul tomlinson Southwest key salespersonid salesperson territory 101 405 tom jones Southeast 102 410 paul tomlinson Southwest

Slowly Changing Dimension Type 2 Create a new dimension row with the new value and a new surrogate key Mark the old row or timestamp as no longer in effect. The fact table will use the new surrogate key to link new fact measurements key salespersonid salesperson territory startdate enddate 101 405 tom jones Northeast 4/24/2007 102 410 paul tomlinson Southwest 3/21/2005 key salespersonid salesperson territory startdate enddate 101 405 tom jones Northeast 4/24/2007 11/30/2009 102 410 paul tomlinson Southwest 3/21/2005 103 405 tom jones Southeast 12/1/2009

Named Set A named set is a MDX expression that returns a set of dimension members. You can define named sets and save them as part of the cube definition. It allows you to reuse the same named set throughout the cube. Typical example: Create a list Top 10 Customers based on Sales, Worst Performing Products etc. You can reuse in different queries.

Default Members Every Dimension has a Default Member Usually the All member is the default member. Default Measures The measures dimension also has a default measure In our sample cube [Adventure Works], the default member for the cube is [Reseller Sales Amount]

Security Setup Roles

Advanced Topics KPI Actions Partitions Aggregations Perspectives Translations Browser

Questions?