This document provides an overview of Microsoft SQL Server Analysis Services (SSAS) tabular models. It discusses the different modes in SSAS including multidimensional and tabular. The key differences between multidimensional and tabular models are described. Tabular models are better suited for tools like Power View, Power BI, and SQL Server Reporting Services. The document demonstrates how to build a sample tabular model in SQL Server Management Studio and Analysis Services including adding data, measures, columns, and other model elements. New features of tabular models in SQL Server 2017 like the user interface and DAX functions are also summarized.
1. SSAS TABULAR MODEL
USING MICROSOFT SQL SERVER 2016 ANALYSIS SERVICES
LAKSHMI PRASANNA.KOTTAGORLA
APPLICATION DEVELOPMENT ANALYST
2. AGENDA:
INTRODUCTION TO MICROSOFT SQL SERVER ANALYSIS SERVICES
Types of Modes in SSAS.
Introduction to SSAS Tabular
Difference between SSAS Multidimentional and Tabular model
Uses of Tabular Model.
Tabular Model – sample Design
About Calculate column and calculated measure
Query Modes
WHAT IS NEW IN SQL SERVER 2017 TABULAR MODEL
3. SQLSERVER ANALYSIS SERVICE(SSAS)
• SQL Server Analysis Services (SSAS) is the technology from the Microsoft
Business Intelligence stack, to develop Online Analytical Processing (OLAP)
solutions.
• In simple terms, you can use SSAS to create cubes using data from data marts /
data warehouse for deeper and faster data analysis.
4. TYPES OF MODES IN SSAS
BISM ( Business Intelligence schema Model) = Multidimenitonal (OLAP) Model +
Tabular(Relational) Model.
5. SSAS TABULAR MODEL
From SQL 2012 release Microsoft introduced Tabular data modeling along with the Multidimensional
model. Tabular model is new type of data model that SSAS introduced. Tabular model is used for
tabular/relational or Power pivot project.
It’s only a little like “regular” Multidimensional
SSAS…mostly different
DirectQuery (Xvelocity)
DAX
Power Pivot,SSRS,EXCEl,Power Bi
6. DIFFERENCE BETWEEN SSAS TABULAR MODEL &
SSAS MULTIDIMENSION MODEL.
Tabular Model
• Datasources: Relational databases, Analysis Services
cubes, Reporting Services reports, Azure DataMarket
datasets, data feed, Excel files and text files.
• Development tools: SSDT,SSMS
• Expression Language: DAX
• Execution of query is fast and writing the quires are
easy
• Data volume is limited by availability of RAM.
• Role playing dimensions are partially supported.
Multidomensionla model
• Datasources: Relational Databases
• Development tools: SSDT,SSMS
• Expression Language: MAX
• Execution of query takes time when huge data
present.
• The quires which are written complex in nature.
• Uses the Ram as well disk space
• Role playing dimensions are supported.
7. WHERE THE TABULAR MODEL IS USED?
POWER VIEW (IN EXCEL)
POWER BI
SQLSERVER REPORTING SERVICES(SSRS)
8. BUILD THE TABULAR MODEL
Source : AdventureWorks
SQL Server Management Studio
SQLServer Analysis Services
Plan
Creating the project
Add data source
Add measure & calculated columns
Add the KPI’s
Add partitions & Roles
Add Perspectives.
Modes
Process etc.
9. CALCULATE COLUMN & CALCULATE MEASURE
• Calculated Columns
• Use when operating on data in a single row
• Won’t change regardless of slicing done in client tool
• Calculated Fields (Measures)
• Math (aggregations) done across multiple rows
• Calculated as-needed based on slicing of data
10. QUERY MODES
Tabular model implemented either in-memory or direct query mode.
In-memory mode:
The Tabular model can be deployed with in –memory mode: Here the quires which are
requested by the client can directly hit the SSAS tabular model from the Analysis
services.
Once process the model the data can be imported into in-memory.
With help of this mode we can get the data very fast .
Direct Query:
Ones request received from the client tool the queries are directly hit the underline
source either sql server or oracle which connected to build the tabular model.
The Tabular model can hold the structure of the model in the tabular model database.
This Mode is suitable at time of large volume of the data than availability of memory
size
11. SSAS 2017 TABULAR MODEL
New User Interface for getting the data.
When you get data, you now see a user interface similar to that used in PowerPivot and/or Power BI
Desktop.
Compatibilities Levels regarding the sql server analysis instance version to deploy.
Hide blank members from parent –child hierarchies.
IN,ConstrinatRows Functions in DAX.
IN keyword can be act as IN key word in SQL Server.
=if( [Amount] IN {20,30,40},”Sales Amount ”,”Tax Amount” )
Object Security : we can write the code in JSON or tabular model scripting language to secure the
tables ,columns .