introduction to azure analysis services - wordpress.com€¦ · why azure as? existing on-prem...

36
Introduction to Azure Analysis Services Shabnam Watson

Upload: others

Post on 04-Jun-2020

12 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Introduction to Azure Analysis Services

Shabnam Watson

Page 2: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

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 Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

What’s covered

• Intro to Analysis Services Tabular.• How to provision Azure Analysis Services servers• Cost• Create/Deploy a model using Visual Studio• Use PBI Desktop to explore data

Page 4: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

About you:

SQL Developer BI Developer DevOpsDBAs

All Photos by Unknown Author is licensed under CC BY-SA

Page 5: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

What is Analysis Services?

Enterprise BI Engine optimized for BI queries20 years old

Data SourceETL

Analysis ServicesCubes/Models

Reports

This Photo by Unknown Author is licensed under CC BY-SA

Ghost photo by Unknown Author is licensed under CC BY-NC-ND

Page 6: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

The elephant in the room

This Photo by Unknown Author is licensed under CC BY-NC-ND

Azure Analysis Servicesor Power BI?

Page 7: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Oh, the places…

On-Prem

SSAS

Enterprise BI Self Service BI

CloudAAS PBI Service

Enterprise and Self Service BI

This Photo by Unknown Author is licensed under CC BY-NC-ND

Page 8: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

SQL Server Analysis Services (SSAS)

On-Prem Reporting Tools

Power BI Report Server

Development Management Tools

SSAS Databases

Page 9: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Azure Analysis Services (AAS)

Cloud Reporting Tools

Power BI Report Server

Development Management Tools

AAS Databases

Page 10: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Power BI Service

Cloud Reporting Tools

Power BI Report Server

XMLA End Point Development Management Tools

PBI Service

Datasets

Premium

Page 11: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Power BI: Super Set of Analysis Services

Cloud Reporting Tools

Power BI Report Server

Development Management Tools

?

PBI Service

XMLA End PointPremium

Page 12: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Relational Model vs. Tabular Model

Page 13: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Relational Model

5/21/201913 |

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 14: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Relational Model

5/21/201914 |

Select Year, SUM([Order Qty]) as OrdersFrom [Internet Sales]Inner Join [Date]On [Internet Sales].DateKey = [Date].DateKeyGroup By YearOrder BY year

ProductInternet Sales

Date

Date KeyProduct KeyOrder QtySales Amount

Date KeyYearQuarterMonthDay

Product KeyProduct NameColor

tabletable

table

Page 15: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Tabular Semantic Model

5/21/201915 |

ProductInternet Sales

Date

Date KeyProduct KeyOrder QtySales Amount

Date KeyYearQuarterMonthDay

Product KeyProduct NameColor

tabletable

table

Order Quantity := SUM([OrderQuantity])

Relationships between tables already definedCalculations predefined: DAX

Page 16: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

DAX: Data Analysis Expressions

• Measures• Calculated columns and tables• Query

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

Page 17: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Tabular Model Storage Modes

Tabular Storage Mode Query Time Processing TimeIn Memory: VertiPaqDirectQuery

Data Source

Analysis Services

Report

Page 18: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

VertiPaq

5/21/201918 |

Fact Tables

Dimension Tables

Row Storage or CCIOn disk

ProductInternet Sales

Date

Analysis Services Model

User Queries

SQL Database

DAX Calcs

Column by column In MemoryQuery Results are cached

Page 19: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

In Memory vs. Direct QueryIn Memory (VertiPaq) Direct QueryData in SSAS/AS memory Data in sourceColumnar SQL Server choiceNo DAX restrictions Some functions optimized, some only

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

Page 20: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Tabular Compatibility LevelsCompatibility Level Scripting Language SSAS Version

1500 TMSL SQL Server 2019 CTP

1400 TMSL SQL Server 2017/Azure AS

1200 TMSL SQL Server 2016

1103 ASSL (XMLA) SQL Server 2014

1100 ASSL (XMLA) SQL Server 2012

Page 21: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

How to set up Azure AS?Azure PortalAzure subscriptionResource Group

On-premises data gateway if …

Much faster than setting up SSAS on a local server

Page 22: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Azure AS Pricing:Tier Level QPU Memory GB Monthly Cost $Developer D1 20 3 98Basic B1 40 10 319Basic B2 80 20 639Standard* S0 40 10 602Standard S1 100 25 1,510Standard S2 200 50 3,020Standard S4 400 100 6,033Standard S8 320 200 7,722Standard S9 640 400 15,445Pricing assumes running full time. 25 QPU approximately equal to 1 virtual core

Page 23: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

ReplicasRead only copiesTotal of 8

When concurrent users > QPUProcessing during heavy use

Replicas synced when created, after that have to be synced after each process.

Page 24: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Price Calculator: S9

https://azure.microsoft.com/en-us/pricing/calculator/?service=analysis-services

Page 25: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

BISM Normalizer

Deployment Cycle

While working in Visual StudioWorkspace Server

Deployment Server: Processing

Read onlyreplicas

Sync

Page 26: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Demo

Page 27: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Automation: ProvisionNew-AzAnalysisServicesServer

-ResourceGroupName “Analysis-Services“-Name "servername“-Sku "S0"-Location "eastus2"

Page 28: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Service Pause/StartSuspend-AzAnalysisServicesServer -ResourceGroupName "Analysis-Services" -Name "servername"

Resume-AzAnalysisServicesServer -ResourceGroupName "Analysis-Services" -Name "servername"

Page 29: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Back to the elephant in the room

Should I use Azure Analysis ServiceOr Power BI?

This Photo by Unknown Author is licensed under CC BY-ND

Page 30: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Why Azure AS?Existing on-prem solution/skills and your data source is moving to the cloud.No actual server to maintain, patch.Best hardware requirements for best performance.Get the latest features.Scaling up/out easily done.Connect from most front end tools.Dedicated capacity up to 400 GB.Don’t have Power BI Premium – Still want one version of truth: governance, quality control.Price?

Page 31: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Power BI Pricing:

Power BI Pro: $9.99 per user per month – 1GBPower BI Premium: $4,995 per month - 10 GB

Page 32: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Power BI Pricing:

Power BI Premium: $4,995 per month*10 GB per model – 100 TB total storage

AAS tier Level QPU Memory GB Monthly Cost $Standard S2 200 50 3,020Standard S4 400 100 6,033

* https://powerbi.microsoft.com/en-us/pricing/

Page 33: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Self Service BI – Enterprise BISelf Service EnterpriseMany small models Few modelsLittle governance More governanceHard to QA all models A coupe of models to QAFast development Slower development

Page 34: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

From PBI model to Azure AS modelConnect to PBI file from Power BI Helper / DAX Studio and get the port numberConnect to localhost:/port number from SSMSScript database Run script on target SSAS/AS serverImport back into Visual Studio

Page 35: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

Thank you!

What question do you have for me?

Contact/ShabnamWatson@[email protected]

https://shabnamwatson.wordpress.com

Page 36: Introduction to Azure Analysis Services - WordPress.com€¦ · Why Azure AS? Existing on-prem solution/skills and your data source is moving to the cloud. No actual server to maintain,

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