SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill

20
Chris Testa-O’Neill [email protected] @ctesta_oneill

Transcript of SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill

Page 1: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill

Chris Testa-O’Neill

[email protected]

@ctesta_oneill

Page 2: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill
Page 3: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill

Introducing Analysis Services

Getting the data

Working with Dimensions Hierarchies

Attribute Relationships

Creating the Cube Working with Measure and Measures Group

Partitions and aggregation design

Browsing the cube

Page 4: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill

Full exploration of cube properties

Use of additional SSAS components

Calculations (MDX)

Key Performance Indicators

Translations

Perspectives

Administration and Maintenance

Security

Page 5: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill

Components of SQL Server used for querying and analysing data

Multi-Dimensional is very much alive. Tabular provides new opportunities

Typically uses a data warehouse as it source data Dimension tables

Fact tables

Core object is a cube storing detailed and pre aggregated data

Number of clients can be used to retrieve cube data

Page 6: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill

Relational Reporting (OLTP) Use of Normalised tables to query data

Can be slow as number of tables used increases or a requirement for aggregate data – Tabular addresses this.

Online Analytical Processing (OLAP) Database type that stores one or more cubes that stores

data in a central repository for reporting purposes

Data Mining Uses OLAP database to explore trands and patterns in the

data

Page 7: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill

Data Sources provides the connection information. Server Name

Authentication

Database

Data Source Views allows you to define a subset of data from the data source Data Source Wizard

Data Source Designer

Page 8: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill
Page 9: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill

Provide contextual information for data in a cube Typically maps to the data in a dimension table of a data warehouse Dimensions form the cube axis Can selectively add attributes to meet business requirements Key properties include Key Columns Name Colums Order by

Time Dimensions

Page 10: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill

Improves the readability of large dimension data

Adds levels to dimension data so users can drill down into the data

Types of Hierarchies include

Balanced (Natural) Hierarchies

Parent Child

Ragged Hierarchies

Page 11: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill

Defines relationships that exists between attributes in a dimension

By default, all attributes have a relationship to the key attribute in a star schema

Modifying the default behaviour can Result in more effective aggregation designs

Increases query performance

Reduce memory requirements for processing dimensions

Use Attribute relationships tab in SQL Server 2008

Use the Dimension tab in SQL Server 2005

Page 12: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill
Page 13: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill

Cube wizard

Existing Tables

Existing Dimension

Empty Cube

Wizard Capabilities differ from SQL Server 2005 and 2008/2012

Page 14: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill

Measures are the business metrics stored within the cube

Typically map to measures in a Fact table in a data warehouse

Can create derived measure using MDX expressions

Aggregate property in Measures has additivity issues

Storage Mode property: MOLAP, ROLAP and HOLAP

Measures Group typically map to fact tables

Measures Groups group measures together

Measures Group maps the measure to dimensions

Page 15: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill

Enterprise Edition

Spread the data across multiple physical disks Improved query performance

Reduced cube processing time

Determine the storage mode on a per partition basis

Design aggregation Enables you to set aggregations based on disk and

performance limit

Usage Based Optimisation a better method

Page 16: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill
Page 17: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill

Cube Browser in BIDS

Microsoft Excel

SQL Server Reporting Services

PerformancePoint\Sharepoint

Page 18: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill
Page 19: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill
Page 20: SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta-O'Neill

Chris Testa-O’Neill

[email protected]

@ctesta_oneill