Analysis Services Tabular Model
#SQLSatLima
BIG Thanks to SQLSatLima sponsors
#SQLSatLima
Sponsor sessions at 16:50
Don’t miss them, they might be getting distributing
some awesome prizes!
KEMP
ER CLOUD 4U
Also Games XBOX One & Raffle prizes at 17:30
#SQLSatLima
Hola, soy Jorge Muchaypiña
Business Intelligence Specialist
◦ MTA Database Fundamentals
◦ MCSA SQL Server 2012/2014
◦ MCSE Business Intelligence
◦ MCSE Data Management and Analytics
◦ MCSA Database Development SQL 2016
◦ Scrum Master
◦ Itil Foundations
Speaker en SQL Pass Lima y Latinoamérica.
Blog : https://jorgemuchaypina.wordpress.com/
Correo: jomichel2003@Hotmail.com
#SQLSatLima
Agenda
◦ Introducción a Tabular Model
◦ Diseñando un Modelo Tabular
◦ Enriqueciéndolo
◦ Consultando con DAX
◦ Administración y Seguridad
◦ Estrategia de Analysis Services Tabular Model
Introduccion a Analysis Services
#SQLSatLima
Analysis Services – En Perspectiva
1996
1998
2000
2001
2003
2005
2008
2012
2014
PowerPivot for Excel 2010
“Vertipaq”
Tabular Model
xVelocity, In-Memory
2011
2016
#SQLSatLima
Power Pivot and Tabular
Vertipaq xVelocity
In-Memory tabular compression and
analysis engine of Power Pivot
xVelocity in-memory analytics engine
xVelocity memory optimized ColumnStore index
#SQLSatLima
xVelocity in-memory
analytics engine
xVelocity
xVelocity Relational
Tabular ColumnStore IndexPower Pivot
Xvelocity en SQL Server
#SQLSatLima
Capa de Consultas
#SQLSatLima
SQL Server como un Datawarehouse – On Premiese
SQL Server
Analysis Services
SQL Server Database Engine
Microsoft SQL Server Integration Services
SQL Server Master Data Services
 1011000110
SQL Server Data Quality
Services
Microsoft SQL Azure
and the Windows Azure
Marketplace
Microsoft SharePoint
Server
Microsoft PowerPivot
Technologies
Microsoft Excel
• Data Mining Add-In
• PowerPivot Add-In
• MDS Add-In
Power View
SQL Server
Reporting Services
Reports, KPIs, and Dashboards
DataWarehousingBusinessIntelligence
#SQLSatLima
Develop
Ecosistema del Desarrollo Tabular
Workspace Tabular
Deploy
Configure
Query
Deployed Tabular
Diseñando un Modelo Tabular
#SQLSatLima
Setting Up The Project
Clock-wise rule of thumb
1. Configure Model.bim properties
2. Configure Project Properties
3. Import from Data Source
(Don’t forget to add the Solution to Source Control)
#SQLSatLima
Mejoras para el UX
1. Marking date table as
date
2. Column Properties
a. Column Name
b. Date Format
c. Data Type
d. Description
e. Hidden
f. Sort By Column
g. Data Category
h. Default Field Set
i. Default Image
j. Default Label
k. Keep Unique Rows
l. Row identifier
m.Summarize By
n. Table Detail Position
Consultando con DAX
#SQLSatLima
EVALUATE
[DEFINE
{MEASURE <tableName>[<name>] =
<expression>}
EVALUATE <table>
[ORDER BY {<expression> [{ASC | DESC}]}[,
…]
[START AT {<value>|<parameter>} [, …]]]
Retrieve data from table expression.
T-SQL
Equivalent
SELECT * FROM <table>
Note Formatting configured in Tabular Model is lost
#SQLSatLima
EVALUATE
is similar to
SELECT * FROM [dbo].[FactInternetSales]
EVALUATE
'InternetSales'
#SQLSatLima
EVALUATE
#SQLSatLima
SUMMARIZE
SUMMARIZE(<table>, <groupBy_columnName>[,
<groupBy_columnName>]…[, <name>,
<expression>]…)
Returns requested aggregated values over a set of groups
T-SQL
Equivalent
SELECT <columns>, <aggregated columns> FROM <table>
GROUP BY <columns>
Type Statistical Function
#SQLSatLima
SUMMARIZE
is similar to …
EVALUATE
SUMMARIZE (
'InternetSales',
'Product'[Product Name],
"Sales", SUM ( 'InternetSales'[Sales Amount] ),
"Revenue", 'InternetSales'[Revenue]
)
#SQLSatLima
SUMMARIZE
SELECT
p.[EnglishProductName],
SUM(f.[SalesAmount]) AS Sales,
SUM(f.[SalesAmount] - f.[ProductStandardCost] -
f.[Freight] - f.[TaxAmt]) AS Revenue
FROM [dbo].[FactInternetSales] f
INNER JOIN [dbo].[DimProduct] p
ON p.[ProductKey] = f.[ProductKey]
GROUP BY
p.[EnglishProductName];
#SQLSatLima
SUMMARIZE
Administración y Seguridad
#SQLSatLima
Processing Partitions
Multiple mutually exclusive partitions
Eliminate unnecessary processing and
processor load on the AS servers
VertiPaq SE
In-Memory
Process
Query
C u r r e n t
June 2013
April 2013
May 2013
…
In-Memory
PartitionsProcess
#SQLSatLima
Database Roles
Database Roles
•Control access to model and data
Permissions Description
None Members cannot modify or query data
Read Members can query data, but can’t change database or see database
Read and Process Members can query data and process database, but can’t change database
or see database model
Process Members can process database, but can’t change database, see database
model or query data
Administrator Members can do everything to database .
Estrategia de SSAS: Tabular Model
#SQLSatLima
Factors To Consider
complexity
scalability
reporting tools
security
data sources
#SQLSatLima
GRACIAS…!!!

SQL Saturday Lima - Analysis Services