Download as pdf or txt
Download as pdf or txt
You are on page 1of 32

Who Needs SSAS When

You’ve Got SQL?

Meagan Longoria

#ITDEVCON
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

Getting Started
• Slides are on my blog:
http://datasavvy.wordpress.com/
presentations
• Feel free to share questions and
comments throughout the
presentation
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

About Me
• Meagan Longoria
• Solutions Consultant with BlueGranite
• Organizer of SQL Saturday Kansas City (Oct. 3, 2015)
• Blog: http://datasavvy.wordpress.com
• Twitter: @mmarie
• LinkedIn: www.linkedin.com/in/meaganlongoria/
• 8 years in BI/Analytics, 3 years in consulting
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

Why Are You Here?


• Developer, DBA, Manager, or Other?
• Experience with SSAS?
– Multidimensional or Tabular?
• Reasons for considering
SSAS?
WHY SSAS?
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

In the Beginning…
• SQL Server 7 OLAP Services
• MOLAP, ROLAP, HOLAP, MDX
1998
• Analysis Services 2000
• Data mining, parent-child dimensions, dimension security,
distinct count
2000 • Only 1 fact table per cube
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

Then Came…
•SQL Server Analysis Services 2005
2005 •Unified Dimensional Model, AMO

•SQL Server Analysis Services 2008


2008 •Attribute relationships and aggregations
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

Then Things Got Interesting


• Power Pivot 1.0 released
2010

• SQL Server Analysis Services 2012


2012 • Tabular & DAX, Multidimensional

• SQL Server Analysis Services 2016:


• New DAX functions, parallel processing for multiple table
2016 partitions
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

In the Meantime…
The SQL Server Database Engine Grew Up
• Columnstore Indexes
• New analytic functions
• Memory-optimized tables
• Row-level security (2016)
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

Have You Had The Thought?


With the features available in the SQL
Server 2014 and 2016 engine…

Is SSAS still useful?


WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

Have You Had The Thought


With the features available in the SQL
Server 2014 and 2016 engine…
IT DEPENDS
Is SSAS still useful?
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

Why Do We Use SSAS?


Speed

Shared metadata (joins, hierarchies, KPIs, etc.)

Security

Multidimensional analysis (ad-hoc analysis, advanced time calculations, drill-through)

Avoid resource contention with the source system

Consolidate from multiple sources


WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

BI Semantic Model
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

Why Do We Use SSAS?


• Speed
• Shared metadata
• Security
• Multidimensional analysis
• Consolidate from multiple
sources
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

My Suggestion
If all you need is increased speed while
querying large amounts of data, the
relational engine may provide your
solution.
Shared metadata, security, and ease of
ad hoc analysis may make SSAS worth
consideration.
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

The Future Is Here & OLAP Is In It


AtScale provides OLAP on Hadoop!

#ITDEVCON
UNDERSTAND
MODES & FEATURES
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

Choose Your Mode

http://www.sqlchick.com/entries/2012/3/4/decisions-
powerpivot-ssas-tabular-or-ssas-multidimensional-m.html
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

Differences – Engine/Database
Multidimensional Tabular
• OLAP engine • In-memory xVelocity Engine
• MDX • DAX (can translate MDX)
• Can be larger than server memory • In-memory means it must fit on
• Multiple cubes per database server
• Direct query • Direct query can’t use calculated
• Very large data sets measures, must use SQL Server
source
• Process partitions in parallel
• Process partitions serially (until 2016)
• Data mining
• Better performance on distinct
counts
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

Demo

SSAS IN MANAGEMENT STUDIO


WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

Differences – Features
Multidimensional Tabular
• Native parent-child hierarchies • Parent-child hierarchies through
• Many-to-many relationships DAX
• Native drillthrough • M2M through DAX and many
• Writeback calculations
• Named sets • Drillthrough with BIDS Helper
• Role-playing dimensions • Integrate different data sources
• Dimension attributes for • Flexible model (no true
optimization, discretization, default dimension/fact)
member, aggregation • Upgrade path from Power Pivot
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

Demo

ATTRIBUTES, RELATIONSHIPS, &


ROLE PLAYING DIMENSIONS
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

Demo

MANY-TO-MANY RELATIONSHIPS &


PARENT-CHILD HIERARCHIES
USE OF SSAS WITH CLIENT TOOLS
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

Commonly Used Client Tools


• Excel: Pivot Tables and Cube Functions
• SSRS: Uses ADOMD client; MDX or GUI
• .NET: ADOMD or OLEDB
– Alternative: SQL Server using
OPENROWSET
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

Demo

CLIENT TOOLS QUERYING SSAS


WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

The Payoff: Mixed Use Environments


• 1 SSAS database provides shared semantic
layer
• Canned reports through SSAS
• Ad hoc browsing through Excel or Tableau
• Applications with embedded reporting using
ADOMD connection
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

Further Reading
• Why use SSAS: http://www.jamesserra.com/archive/2013/08/why-use-a-ssas-cube/
• Why Analysis Services: http://www.angelsbiblog.com/2013/01/why-analysis-
services.html
• https://msdn.microsoft.com/en-us/library/hh212940.aspx
• Why do I need a cube: http://blog.datainspirations.com/2011/05/11/sqlu-ssas-
week-why-do-i-need-a-cube-how-do-i-get-started/
• AtScale OLAP on Hadoop: http://talkincloud.com/iaas/atscale-partners-microsoft-
big-data
• Differences between OLAP & Tabular: http://www.codemag.com/Article/1308091
• Choosing a tabular or multidimensional experience:
https://msdn.microsoft.com/en-us/library/Hh994774.aspx
• What’s new in SSAS 2016:
https://msdn.microsoft.com/en-us/library/bb522628.aspx
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

Further Reading
• PowerPivot vs SSAS Tabular vs SSAS MD:
http://www.sqlchick.com/entries/2012/3/4/decisions-powerpivot-ssas-tabular-or-
ssas-multidimensional-m.html
• Large scale Tabular SSAS whitepaper:
http://sqlblog.com/blogs/marco_russo/archive/2014/06/05/white-paper-on-
analysis-services-tabular-large-scale-solution-ssas-tabular.aspx
• Optimizing M2M calculations: https://www.sqlbi.com/articles/optimize-many-to-
many-calculation-in-dax-with-summarize-and-cross-table-filtering/
• SSAS MOLAP Performance Guide:
https://msdn.microsoft.com/en-us/library/Dn749781.aspx
• Establishing Connections in ADOMD.NET: https://msdn.microsoft.com/en-
us/library/ms123468.aspx
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

GOLD
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

SILVER

BRONZE PERSONAL/BLOG
WHO NEEDS SSAS WHEN YOU’VE GOT SQL?

Questions/Comments

• Meagan Longoria
• Solutions Consultant with BlueGranite
• Blog: http://datasavvy.wordpress.com
• Twitter: @mmarie
• LinkedIn: www.linkedin.com/in/meaganlongoria/

You might also like