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

Post on 03-Jun-2020

7 views 0 download

transcript

Introduction to Microsoft Analysis Services

Shabnam Watson

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

info@abicube.com

BLOG: https://shabnamwatson.wordpress.com

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

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

May 2019

About you:

Application Developer

BI Developer

sysadmins ?

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

May 2019

Analysis Services

On-Prem

SSAS

Enterprise BI Self Service BI

CloudAAS PBI Service

Enterprise and Self Service BI

May 2019

Analysis Services

On-Prem

SSAS

CloudPBI Service - Premium

Enterprise BI Self Service BI Enterprise and Self Service BI

May 2019

SQL Server Analysis Services (SSAS)

On-Prem Reporting Tools

Power BI Report Server

Development Management Tools

May 2019

Azure Analysis Services (AAS)

Cloud Reporting Tools

Power BI Report Server

Development Management Tools

May 2019

Power BI Service

Cloud Reporting Tools

Power BI Report Server

XMLA End Point Development Management Tools

PBI Service –Premium

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

May 2019

Relational Model vs. Tabular Model

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

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

May 2019

Tabular Model Storage Modes

Tabular Storage Mode

Query Time Processing Time

In Memory: VertiPaqDirectQuery

Data Source

Analysis Services

Report

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

May 2019

DAX: Data Analysis Expressions

• Measures• Calculated columns and tables• Query

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

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

May 2019

SQL Server Management Studio (SSMS)

5/13/201920 |

Server

Database

Tables

AdevntureWorks

May 2019

Development Environment:

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

May 2019

BISM Normalizer

Deployment Cycle (On-Prem)

While working in VSWorkspace Server

Deployment Server: Processing

Deployment Server: Query

May 2019

Demo

May 2019

Demo

May 2019

Thank you!

What question do you have for me?

Contact/ShabnamWatson@shbWatsoninfo@abicube.com

https://shabnamwatson.wordpress.com

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

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)

May 2019

Common Deployment Issues

• Data source connection has wrong server/database name.

• The impersonation is not set properly.

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

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