Upload
others
View
5
Download
0
Embed Size (px)
Citation preview
The 20-Minute Tabular Model
Bill Anton Head Beaver @ Prime Data Intelligence
2
Bill AntonBusiness Intelligence [email protected]
@SQLbyoBI
Downloads and Additional Referenceshttp://byobi.com/blog/20-minute-tabular-model/
Agenda
1. What/Why Tabular
2. Tabular vs Multidimensional
3. DEMO
4. DAX vs MDX
3 | http://byoBI.com/blog/20-minute-tabular-model/
What is BISM Tabular
4 |
TABULAR MULTIDIMENSIONAL
DAX MDX
xVelocity MOLAPDirect Query
ROLAP
Data Warehouse
Power BI PowerView Excel SharePoint PowerPivot Third-Party
Data Lake
Reporting Layer
Server Type
Business Logic
Storage Layer
Data Source
http://byoBI.com/blog/20-minute-tabular-model/
What is Vertipaq xVelocity?
5 |
1. In-Memory
2. Compressed
3. Column-Store
http://byoBI.com/blog/20-minute-tabular-model/
Row-Store vs Column-Store
6 |
CREATE TABLE dbo.Sales
(
Date datetime
,Product int
,Customer int
,Store int
,Amount money
);
Date Product Customer Store Amount
http://byoBI.com/blog/20-minute-tabular-model/
Row-Store vs Column-Store
7 |
SELECT Product
,TotalSales = SUM(Amount)
FROM dbo.Sales
GROUP BY Product
;Date Product Customer Store Amount
http://byoBI.com/blog/20-minute-tabular-model/
Row-Store
8 |
Disk Memory
http://byoBI.com/blog/20-minute-tabular-model/
Row-Store
9 |
Disk Memory
http://byoBI.com/blog/20-minute-tabular-model/
Row-Store
10 |
Memory
http://byoBI.com/blog/20-minute-tabular-model/
Column-Store
11 |
Date Product Customer Store Amount
http://byoBI.com/blog/20-minute-tabular-model/
Column-Store
12 |
Product Amount
SELECT Product
,TotalSales = SUM(Amount)
FROM dbo.Sales
GROUP BY Product
;
http://byoBI.com/blog/20-minute-tabular-model/
Column-Store
13 |
Disk Memory
http://byoBI.com/blog/20-minute-tabular-model/
Column-Store
14 |
Disk Memory
http://byoBI.com/blog/20-minute-tabular-model/
Column-Store
15 |
Memory
http://byoBI.com/blog/20-minute-tabular-model/
Row-Store vs Column-Store
16 |
What it looks like in memory…
Row-Store Column-Store
http://byoBI.com/blog/20-minute-tabular-model/
Row-Store vs Column-Store
17 |
…don’t forget about compression!
Row-Store Column-Store
http://byoBI.com/blog/20-minute-tabular-model/
What is Vertipaq xVelocity?
18 |
1. In-Memory
2. Compressed
3. Column-Store
http://byoBI.com/blog/20-minute-tabular-model/
Tabular vs. Multidimensional
19 | http://byoBI.com/blog/20-minute-tabular-model/
Tabular vs. Multidimensional
20 |
Criteria/Requirement Multidimensional Tabular
Data Size Up to 24TB* Memory-bound
Real-Time Yes* Yes
Hardware Resources Memory, CPU, Disk IO Memory, CPU*
Query Performance Fast (hard) Very Fast (less hard)
Query/Calc Types Aggregate Aggregate + Detail
Language MDX DAX
Development Effort Medium -> High Low -> Medium
Model Complexity Simple + Complex Simple*
Security Row-Level, Cell Row-Level
Data Sources Limited MOST
Licensing All BI/Enterprise Only
http://byoBI.com/blog/20-minute-tabular-model/
Summary of Tabular Limitations
21 |
Not Available PERIOD
• Writeback
• Data Mining
• Cell Security
• Aggregations (not necessary)
• Custom Assemblies
• Linked Objects (deprecated)
• Remote Partitions (deprecated)
Not Available NATIVELY(Workaround Available)
• Parent-Child Hierarchies
• Complex Calculations
• Named Sets
• Scoped Assignments
• Custom Rollups
• Cell Calculations
• Many 2 Many
• Actions*
• Translations*
http://byoBI.com/blog/20-minute-tabular-model/
Use Tabular When…
22 |
Data Fits in Memory
Many Detail-Level Calculations
Outstanding Distinct Count Performance
Widespread use of PowerPivot
Want to enjoy the excitement of new features before
Multdimensional folks
http://byoBI.com/blog/20-minute-tabular-model/
Use Multidimensional When…
23 |
Data is too big for Memory
Complex Calculations
Writeback
Cell-Level Security
Custom Assemblies
Parent-Child hierarchies cannot be flattened
SSAS-based Data Mining (not Azure ML)
http://byoBI.com/blog/20-minute-tabular-model/
Tabular vs. Multidimensional
24 |
Tabular MultidimensionalEither
http://byoBI.com/blog/20-minute-tabular-model/
Just don’t force it…
25 | http://byoBI.com/blog/20-minute-tabular-model/
Demo
26 |
Requirements:
1. SQL Server 2012+ Analysis Services (Tabular)
2. SQL Server Data Tools (SSDT)
plus SSDT-BI (BI Project Templates)its complicated read this first
http://byoBI.com/blog/20-minute-tabular-model/
DAX vs MDX
27 |
Pro
ficie
ncy
Time
DAX
MDX
http://byoBI.com/blog/20-minute-tabular-model/
Questions
28 |
http://byobi.com/blog/20-minute-tabular-model/
http://byobi.com/blog/20-minute-tabular-model/