28
The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence

The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

The 20-Minute Tabular Model

Bill Anton Head Beaver @ Prime Data Intelligence

Page 2: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

2

Bill AntonBusiness Intelligence [email protected]

@SQLbyoBI

Downloads and Additional Referenceshttp://byobi.com/blog/20-minute-tabular-model/

Page 3: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

Agenda

1. What/Why Tabular

2. Tabular vs Multidimensional

3. DEMO

4. DAX vs MDX

3 | http://byoBI.com/blog/20-minute-tabular-model/

Page 4: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

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/

Page 5: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

What is Vertipaq xVelocity?

5 |

1. In-Memory

2. Compressed

3. Column-Store

http://byoBI.com/blog/20-minute-tabular-model/

Page 6: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

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/

Page 7: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

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/

Page 8: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

Row-Store

8 |

Disk Memory

http://byoBI.com/blog/20-minute-tabular-model/

Page 9: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

Row-Store

9 |

Disk Memory

http://byoBI.com/blog/20-minute-tabular-model/

Page 10: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

Row-Store

10 |

Memory

http://byoBI.com/blog/20-minute-tabular-model/

Page 11: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

Column-Store

11 |

Date Product Customer Store Amount

http://byoBI.com/blog/20-minute-tabular-model/

Page 12: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

Column-Store

12 |

Product Amount

SELECT Product

,TotalSales = SUM(Amount)

FROM dbo.Sales

GROUP BY Product

;

http://byoBI.com/blog/20-minute-tabular-model/

Page 13: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

Column-Store

13 |

Disk Memory

http://byoBI.com/blog/20-minute-tabular-model/

Page 14: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

Column-Store

14 |

Disk Memory

http://byoBI.com/blog/20-minute-tabular-model/

Page 15: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

Column-Store

15 |

Memory

http://byoBI.com/blog/20-minute-tabular-model/

Page 16: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

Row-Store vs Column-Store

16 |

What it looks like in memory…

Row-Store Column-Store

http://byoBI.com/blog/20-minute-tabular-model/

Page 17: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

Row-Store vs Column-Store

17 |

…don’t forget about compression!

Row-Store Column-Store

http://byoBI.com/blog/20-minute-tabular-model/

Page 18: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

What is Vertipaq xVelocity?

18 |

1. In-Memory

2. Compressed

3. Column-Store

http://byoBI.com/blog/20-minute-tabular-model/

Page 19: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

Tabular vs. Multidimensional

19 | http://byoBI.com/blog/20-minute-tabular-model/

Page 20: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

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/

Page 21: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

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/

Page 22: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

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/

Page 23: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

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/

Page 24: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

Tabular vs. Multidimensional

24 |

Tabular MultidimensionalEither

http://byoBI.com/blog/20-minute-tabular-model/

Page 25: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

Just don’t force it…

25 | http://byoBI.com/blog/20-minute-tabular-model/

Page 26: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

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/

Page 27: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

DAX vs MDX

27 |

Pro

ficie

ncy

Time

DAX

MDX

http://byoBI.com/blog/20-minute-tabular-model/

Page 28: The 20-Minute Tabular Model - byoBI.combyobi.com/.../20MinuteTabular_SQLSat445_20151010.pdf · The 20-Minute Tabular Model Bill Anton Head Beaver @ Prime Data Intelligence. 2

Questions

28 |

http://byobi.com/blog/20-minute-tabular-model/

http://byobi.com/blog/20-minute-tabular-model/