19
Designing and developing OLAP Cubes and Multidimensional structures

Developing ssas cube

Embed Size (px)

DESCRIPTION

BI Firestarter SSAS 01: Developing ssas cube

Citation preview

Page 1: Developing ssas cube

Designing and developing OLAP Cubes and Multidimensional structures

Page 2: Developing ssas cube

About MeSlava Kokaev – Lead business Intelligence Architect

at Industrial DefenderBoston BI USER GROUP leader

email: vkokaev@bosto

nbi.orgweb:

www.bostonbi.org/blogstwitter:

@SlavaKokaev

Page 3: Developing ssas cube

Agenda

Introduction to OLAP

Understanding Cube Components

Building SSAS OLAP Database

Designing Dashboards ins SPS 2010

Page 4: Developing ssas cube

Analysis SystemMultidimensional databases are also called online analytical processing (OLAP) databases and…Contain structures optimized for rapid ad hoc information retrievalPre-calculate and store aggregated valuesInclude calculation engines for fast, flexible transformation of base dataDesigned to reveal business trends and statistics not directly visible in the data retrieved from a data warehouseData mining models discover patterns in data, typically for prediction analysis

ProductAssociation

Sales FinanceProduction

Page 5: Developing ssas cube

VT

COM

A

TXSt

ate

Understanding Cube Structure

12451576

29543007

1383

16542145

2012

645

8451082

905

275

345875

745 745

905

2012

3007

761

745

1365

1575

234

2455

988

700

645

2322

18741479

15531576 2954 3007

1455 1874445 1575

995 1945 945 1479

1164 1893 13761245

Quarter 1Quarter 2

Quarter 3 Quarter 4

Semester 1

Semester 2

Calendar Year - 2009

Australia

United States

Canada

France

Coun

try

Accessories

Bikes

Clothing

Components

Prod

uct

Line

Page 6: Developing ssas cube

Cube Cell

Cell positions in the cube are defined by the intersection of dimension members, and the measure values are aggregated to provide the values in the cells.

Page 7: Developing ssas cube

Building Analysis Services OLAP Database

Create Calculations and KPI

Deploy Database to development server

Build Cube

Create Measures

Create Dimensions

Create Data Source View

Create Data Source

Page 8: Developing ssas cube

Interacting With Analysis Services

There are three ways to interact with Analysis Services: SQL Server Management Studio, Business Intelligence (BI) Development Studio in project mode, and BI Development Studio in directly connected mode.

SSMSBIDS DCM BIDS

Page 9: Developing ssas cube

Understanding Cube Representation SSAS Database in SSMS SSAS Project in BIDS

SSAS Multidimensional Structure

SSAS CubeMetadata

Page 10: Developing ssas cube

Data Sources

Data sources are the starting point for your modeling activity within Analysis Services.

OLEDB Oracle Provider

Data Warehouse Data Source

Page 11: Developing ssas cube

Data source viewsThe data source view is an abstraction layer that is used to extend the objects (relational tables and views) that are exposed by the data source to a collection of objects from which Analysis Services objects are created.

Page 12: Developing ssas cube

Data source views

OLEDB Oracle Provider

SQL Server Provider

Source DB Source DBData Sources

Data Source View

Page 13: Developing ssas cube

Designing Cube A cube is a multidimensional structure that contains dimensions and measures. Dimensions define the structure of the cube, while measures provide the numerical values of interest to the end user.

Page 14: Developing ssas cube

Data source views

OLEDB Oracle Provider

SQL Server Provider

Source DB Source DBData Sources

Data Source View

Cube

Page 15: Developing ssas cube

Designing DimensionsDimensions are a structural attribute of cubes. They are organized hierarchies of categories and (levels) that describe data in the fact table. These categories and levels describe similar sets of members upon which the user wants to base an analysis.

Page 16: Developing ssas cube

Designing DimensionsDatabase Table

DataSourceView

DatabaseDimension

DimensionHierarchy

CubeDimension

Page 17: Developing ssas cube

Product Hierarchies

Page 18: Developing ssas cube

HierarchiesA dimension hierarchy is a collection of logically structured levels based on attributes.

Page 19: Developing ssas cube

Cube objects

CalculationsA calculation is a Multidimensional Expressions (MDX) expression or script that is used to define a calculated member, a named set, or a scoped assignment in a cube Key Performance Indicators

ActionsAction is a client command that is defined and stored on the server

PerspectivesA perspective is a read-only view of the cube

Translations, Custom assemblies, user-defined functions, and MDX scripts

Besides the dimension usage, measure groups, and partitions, the cube has other objects in it.