Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of...

32
Introduction to Microsoft Analysis Services Shabnam Watson

Transcript of Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of...

Page 1: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

Introduction to Microsoft Analysis Services

Shabnam Watson

Page 2: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

Shabnam WatsonBI Consultant

Work: BI Consultant17 Years of experience developing data warehouse and business intelligence solutions with focus on Analysis Services and Power BI.

BackgroundMaster's degree in computer science. Certified Business Intelligence Professional (CBIP) by The Data Warehouse Institute (TDWI).

SpeakingPASS Summit, SQL Saturdays, Women In Technology Virtual Chapter and Atlanta SQL Server user groups.

/ShabnamWatson

@shbWatson

[email protected]

BLOG: https://shabnamwatson.wordpress.com

Page 3: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

• SQL Saturday #845 - Atlanta 2019 – May 18th

• Power BI Palooza – Atlanta June 8th

• PASS BA Summit – Atlanta June 9th – June 12th

• SQL Saturday BI - Atlanta 2019 - Fall 2019• PASS Summit – Seattle – Nov 5th to 8th

Page 4: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

What’s covered

• Analysis Services (Tabular) concepts• Create/Deploy a model using Visual Studio• Use Excel/PBI Desktop to explore data• Ways to program for Analysis Services

Page 5: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

About you:

Application Developer

BI Developer

sysadmins ?

Page 6: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

What is Analysis Services?

Enterprise BI: 20 years oldData engine optimized for BI queriesSemantic Layer: Predefined relationships and calculations

Data Source

Analysis Services

Report

Page 7: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

Analysis Services

On-Prem

SSAS

Enterprise BI Self Service BI

CloudAAS PBI Service

Enterprise and Self Service BI

Page 8: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

Analysis Services

On-Prem

SSAS

CloudPBI Service - Premium

Enterprise BI Self Service BI Enterprise and Self Service BI

Page 9: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

SQL Server Analysis Services (SSAS)

On-Prem Reporting Tools

Power BI Report Server

Development Management Tools

Page 10: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

Azure Analysis Services (AAS)

Cloud Reporting Tools

Power BI Report Server

Development Management Tools

Page 11: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

Power BI Service

Cloud Reporting Tools

Power BI Report Server

XMLA End Point Development Management Tools

PBI Service –Premium

Page 12: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

Power BI: Super Set of Analysis Services

Cloud Reporting Tools

Power BI Report Server

Development Management Tools

?

PBI Service –Premium

XMLA End Point

Page 13: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

Relational Model vs. Tabular Model

Page 14: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

Relational Model

5/13/201914 |

Date Key Product Key Order Qty Sales Amount20180602 528 10 500

Internet Sales

Date Key Year Quarter Month Day20180602 2018 2 June 6

Date

Product Key Product Name Color528 Tire Tube Black

Product

Page 15: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

Relational Model

5/13/201915 |

ProductInternet Sales

Date

Date KeyProduct KeyOrder QtySales Amount

Date KeyYearQuarterMonthDay

Product KeyProduct NameColor

Fact tableDimension table

Dimension table

Page 16: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

Tabular Model Storage Modes

Tabular Storage Mode

Query Time Processing Time

In Memory: VertiPaqDirectQuery

Data Source

Analysis Services

Report

Page 17: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

Tabular Model

5/13/201917 |

Fact Tables

Dimension Tables

Relationships between tables/objects already defined.Data is stored column by column vs. row by row.

ProductInternet Sales

Date

Analysis Services Model

User Queries

SQL Database

DAX Calcs

Page 18: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

DAX: Data Analysis Expressions

• Measures• Calculated columns and tables• Query

Measure Name := DAX ExpressionOrder Quantity := SUM([OrderQuantity])

Page 19: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

https://www.microsoft.com/en-us/sql-server/sql-server-downloads

• Developer version: Full feature Development and Test.

How to download SQL Server

Page 20: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

SQL Server Management Studio (SSMS)

5/13/201920 |

Server

Database

Tables

AdevntureWorks

Page 21: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

Development Environment:

https://docs.microsoft.com/en-us/sql/ssdt/download-sql-server-data-tools-ssdt?view=sql-server-2017

Page 22: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

BISM Normalizer

Deployment Cycle (On-Prem)

While working in VSWorkspace Server

Deployment Server: Processing

Deployment Server: Query

Page 23: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

Demo

Page 26: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

Demo

Page 27: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

Thank you!

What question do you have for me?

Contact/ShabnamWatson@[email protected]

https://shabnamwatson.wordpress.com

Page 28: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

Tabular Compatibility LevelsCompatibility Level Scripting Language SSAS Version

1500 TMSL SQL Server 2019 CTP

1400 TMSL SQL Server 2017

1200 TMSL SQL Server 2016

1103 ASSL (XMLA) SQL Server 2014

1100 ASSL (XMLA) SQL Server 2012

Page 29: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

In Memory vs. Direct QueryIn Memory (VertiPaq) Direct QueryData In SSAS Data In SQL ServerColumnar SQL Server choiceNo DAX restrictions Some functions optimized, some only

allowed in measuresCalculated tables allowed Calculated tables not allowedOne data source Multiple data sourcesPartitions allowed One partition only (plus sample)

Page 30: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

Common Deployment Issues

• Data source connection has wrong server/database name.

• The impersonation is not set properly.

Page 31: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

Modeling Best PracticesUse views for data source when possibleRename objects sooner vs. laterLimit data when modelingPay attention to data typesReduce cardinality: Split DateTime columnsUse partitioning for large tables

Page 32: Introduction to Microsoft Analysis Services · BI Consultant Work: BI Consultant. 17 Years of experience developing data warehouse and business intelligence solutions with focus on

May 2019

SSAS GeneralClient Connectivity LibrariesWhat’s new in SSAS 2017Sample databasesDAX ReferenceTMSL Language ReferenceDirect Query ModeTabular Model ExplorerPower Query (M) Reference

ReferencesAzure Analysis ServicesAnalysis Services TutorialsPower BI ServicePower BI Architecture Diagram