SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2...

22

Transcript of SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2...

Page 1: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold
Page 2: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold

SQL Server MVP from Jacksonville, FL

Owner of Pragmatic Works

Consultant and Trainer

Co-founder of SQLServerCentral.com, JumpstartTV.com

Author of 9 SQL Server books

Amateur surgeon

Report all complaints to [email protected]

Page 3: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold
Page 4: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold
Page 5: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold
Page 6: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold

One of three river’s that flow North in US

Page 7: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold

Overview of SSAS

Create a cube

Dimensional design and hierarchies

Building a UI for SSAS

Page 8: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold

Build a high-level aggregated report or

dashboard in seconds

Give users a drag-and-drop capability to

generate their own reports

Centralize items like key performance

indicators (KPIs)

Page 9: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold

Analysis

Server

OLEDB

ADOMD

.NET

AMO IIS

TCP

HTTP

XMLA

ADOMD

Client

Apps

BIDS

SSMS

Profiler

Excel

Page 10: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold

• What are measures?− The value you are measuring, e.g. the

count of users with blue eyes, from WA state, etc.

− The question you are trying to ask

• What are measure groups? − Groupings of these measures within your

cube

− Typically define them by your business problem (e.g. Sales, HR, etc.)

• Cubes are a grouping of measure groups.

Page 11: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold

• What is a dimension?− It is what you want to categorize or pivot against

− E.g. How many users are from WA state?

− The dimension is geography, “WA” is the member

• What is a hierarchy?− How do you want to organize the members of

your dimension

− E.g. Geography has numerous levels such as country, state, and city

− Hierarchy is the organization of those levels such as City State Country

Page 12: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold

Customer

City

State

Country

Gender Marital

Country

State

City

Customer

Gender

Customer

Marital

Gender

Customer

Customer

City

State

Country

Gender

Marital

Attributes Hierarchies

Age

Page 13: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold

Sales Inventory Finance

Customers X

Products X X

Time X X X

Promotions X

Warehouse X

Department X

Account X

Scenario X

Measure Group

Dim

en

sio

n

Page 14: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold

Create a Data Source

Create a Data Source View (DSV)

Create a Cube

Browse the cube in BIDS

Page 15: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold

Pre-defined navigation paths through dimensional space defined by attributes

Attribute hierarchies enable ad hoc navigation

Why create user defined hierarchies then?› Guide end users to interesting navigation paths

› Existing client tools are not “attribute-aware”

› Performance

Optimize navigation path at processing time

Materialization of hierarchy tree on disk

Clustered decoding stores

Aggregation designer favors user defined hierarchies

Page 16: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold

Query language is MDX

BIDS for developers

Excel for most users is adequate or

Reporting Services

SharePoint for web users

Many 3rd party applications like Proclarity

or Panorama

Controls you can purchase and build

into your own Application

Page 17: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold

Create a hierarchy

Dealing with problematic keys

Attribute relationships

Browse the cube in Excel

Page 18: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold

CustomersAll Customers

Country

StateCity

Name

ProductsAll ProductsCategory

Brand

Item

SKUFacts

CustomerID SKU Units Sold Sales

345-23 135123 2 $45.67

563-01 451236 34 $67.32

Highest-Level Aggregation

Customer Product Units Sold Sales

All All 347814123 $345,212,301.30

Intermediate Aggregation

CountryCode ProductID Units Sold Sales

Can sd452 9456 $23,914.30

US yu678 4623 $57,931.45

A subtotal of partition data based on a set of attributes from each dimension

Page 19: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold

Reference: http://sqlcat.com/technicalnotes/archive/2008/11/18/reintroducing-

usage-based-optimization-in-sql-server-2008-analysis-services.aspx

Improves performance by reviewing the query log and

designing aggregations based on what users are asking

Page 20: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold

Creation of an aggregate

Usage Based Optimization

Page 21: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold

Business Intelligence Training (Virtual Training $795.00 per person)

◦ SSIS – Integration Services

◦ SSAS – Analysis Services

◦ SSRS – Reporting Services

Data Warehouse Fast Track

◦ Five day, onsite, training/mentoring engagement that builds a PROTOTYPE Data Warehouse with your data.

◦ Software◦ DTS conversion software (DTS

xChange)

◦ BI xPress – Rapid development

◦ BI Documenter – Documents BI stack

◦ Task Factory – Series of SSIS tasks

BI Stack: Upgrade 2000, Educate, & Empower

EmpowerDWFT

PROTOTYPE 5 DAYS

SSIS: Train $795.00

SSAS: Train

$795.00

SSRS: Train $795

Page 22: SQL Server MVP from Jacksonville, FL · Facts CustomerID SKU Units Sold Sales 345-23 135123 2 $45.67 563-01 451236 34 $67.32 … Highest-Level Aggregation Customer Product Units Sold

Questions?

[email protected]