SlideShare a Scribd company logo
1 of 31
Download to read offline
NASI SPONSORZY I PARTNERZY
DAXMD: SSAS Meets DAX and Power View
Chris Webb
chris@Crossjoin.co.uk
Who Am I?
•

Chris Webb
• Email: chris@crossjoin.co.uk
• Twitter @Technitrain

•
•

Analysis Services consultant and trainer:
www.crossjoin.co.uk & www.technitrain.com
Co-author:
• MDX Solutions
• Expert Cube Development with SSAS 2008
• Analysis Services 2012: The BISM Tabular Model

•
•

SQL Server MVP
Blogger: http://cwebbbi.wordpress.com
Who Remembers the Good Old Days?
The Golden Age of SSAS Cubes!

SQLDay 2013
We Built Some Great BI Solutions
Have Those Days Gone Forever Now?
No, There IS A Future For SSAS Cubes!
Agenda
• DAX on Multidimensional – What’s Changed and
Why?
• Multidimensional Objects and Tabular Metadata
• A Guided Tour
• Specific Scenarios
• What Works and What Doesn’t
• Writing Your Own DAX Queries
• What All This Means For You
The Story So Far
• There are two versions of Analysis Services 2012:
Multidimensional and Tabular
• Multidimensional only speaks MDX, Tabular speaks DAX
and MDX
• Excel PivotTables generate MDX queries so they work
with both
• Power View is Microsoft’s cool new data visualisation
tool – exists as part of Sharepoint and inside Excel 2013
• Power View generates DAX queries so it only works with
Tabular
• Therefore, today, to use Power View on SSAS you need to
use Tabular
Analysis Services 2012
SQL
Server

Other
RDBMS

Multidimensional

MDX

Excel / other SSAS
clients

Text

OData

Tabular

Data Sources

Analysis Services
2012

DAX

Power View in
Sharepoint

Client Tools
Analysis Services DAXMD
SQL
Server

Other
RDBMS

Multidimensional

MDX

Excel / other SSAS
clients

Text

OData

Tabular

Data Sources

Analysis Services
2012

DAX

Power View in
Sharepoint

Client Tools
What’s Changed in DAXMD?
• DAXMD is the codename for a new version of SSAS
Multidimensional
– Currently in public CTP

• DAXMD supports DAX queries on SSAS Multidimensional
cubes
– DAX is not translated to MDX

• This means Power View will work on SSAS Multidimensional
cubes
• Power View will have new features to support DAXMD
• Will require an update to new versions of both SSAS 2012
Multidimensional and Power View in Sharepoint
• Will not work with Excel 2013 Power View initially
– Waiting for a service pack?
SSAS Multidimensional Internal
Architecture

MDX Query
MDX Query Support

Formula Engine
DAX Query

DAX Query Support

MOLAP/HOLAP/ROLAP
Storage Engine
Multidimensional – Tabular Object
Mapping
Multidimensional Object

Appears in Tabular Metadata As

CUBE

MODEL

CUBE DIMENSION

TABLE

ATTRIBUTE KEYS AND NAMES

COLUMNS

MEASURE GROUP

TABLE

MEASURE

MEASURE

MEASURE WITH NO MEASURE GROUP

MEASURE IN TABLE CALLED “MEASURES”

MEASURE GROUP -> CUBE DIMENSION
RELATIONSHIP

RELATIONSHIP

PERSPECTIVE

PERSPECTIVE

KPI

KPI

USER OR PARENT/CHILD HIERARCHY

HIERARCHY
Connecting to a DAXMD Instance
• Create a new Report Data Source connection file
• Choose Data Source Type “Microsoft BI Semantic Model for
Power View”
• In the connection string, enter:
–
–
–
–

The name of the DAXMD instance
The database name
The name of the cube you need to connect to
If using Translations, also need to add Locale Identifier property

• Choose appropriate credentials
Data Source=WIN-LSBGBK95L52; Initial Catalog=DAXMDDemos;
Cube=SimpleCube
Maps and Images
• To enable Power View maps on an attribute:
– Set the dimension’s Type property to Geography
– Set the attribute’s Type property to a value like
GeographyCountry

• To enable image urls in Power View:
– Set the attribute’s Type property to ImageImageURL

• Images stored as BLOBs in SSAS are not supported
Parent/Child Hierarchies
• Parent/Child Hierarchies are supported
• But in Power View they appear as flattened tables
with repeating values
• You can only show one level’s values at a time
Default Members
• Default Members are supported
• Become automatically applied filters in the filter
pane – easy to override if you need to
• Also apply filters to related attributes
– Eg set a default member on City and Country gets
filtered too
Measures and Format Strings
• Measures in Multidimensional return variants, and
Power View now supports this
• Power View supports some, but not all, format
strings
• Not supported:
–
–
–
–

4th section of format string for null values
Some formats that return strings
Some date formats
Formats that return named values like True/False,
On/Off
Calculated Members
• Calculated measures are 100% supported
• Scoped assignments work fine too
• Calculated members on non-measures dimensions only
appear if
– They are children of the All Member and there is at least one
real member
– There is no All Member and there is at least one real member

• This means time utility/shell/date tool dimensions will work
• Not supported:
– Calculated members on user hierarchies
– Calculated members on parent/child hierarchies
– Attribute cannot be the key attribute unless it is the only
attribute on the dimension
Security
• Dimension security works
• Cell security is not supported though
• Users that are members of roles that use cell security
cannot connect via Power View
What Else Doesn’t Work?
• Not much, actually, apart from what’s already been
mentioned
• Actions do not appear in Power View
• Some DAX functions like PATH() don’t work
• You should be able to upgrade your cube and go
Pinning Report Filters
• Not a new feature in SSAS but it’s new in this CTP for
Power View
• It allows a report filter to be pinned across multiple
views
DAX Queries on DAXMD
• You can also write your own DAX queries against a DAXMD
model
• To specify which cube to query, remember to use cube =
insertcubename in the connection string
• DAX queries can be written in SQL Server Management Studio
– No useful metadata or intellisense though

• They can be used in:
– Excel – bound to a table
– Reporting Services Reports
– Third party tools that support DAX queries

• Maybe faster/easier to write than MDX for list-type reports
DISCOVER_CSDL_METADATA
• This DMV is queried by Power View to get Tabular
metadata
• Returns CSDL (Conceptual Schema Definition
Language) – the XML schema used by Entity
Framework
• Looking at what returns will help you make sense of
the rules and restrictions on DAX queries in DAXMD
DAX Queries and Member Keys
• One dimension attribute will appear as one or more
columns in the Tabular metadata
– The number of columns depends on how you have
configured the KeyColumns, NameColumn and
ValueColumn properties

• When writing DAX queries, you must include all key
columns and name columns for an attribute in your
query
– Otherwise you will get an error!

• Member properties also appear as columns in the
Tabular metadata
– Though they are not visible in Power View
DAX Measures
• Measures written in DAX can be defined in the DEFINE clause
of a DAX query
• Measures written in DAX cannot be defined in the cube’s MDX
Script
• DAX measures are unlikely to solve MDX calculation
performance problems, but…
• DAX measures could have some advantages over MDX
measures:
– Better handling of multi-select
– Easier to write calculations that need to be aggregated
– Implicit measures on dimension attributes, eg a distinct count
on members of an attribute (though performance may not be
great)
DAXMD and the Future
• DAXMD will mean you can upgrade your existing
SSAS cubes to work with Power View in Sharepoint
• Once Excel 2013 is updated, Power View in Excel will
work too – and this is a much bigger deal
• Upgrading will buy you time while Microsoft’s SSAS
strategy becomes clear…
– Or you upgrade to Tabular

• Will there be any more new SSAS Multidimensional
functionality after this?
When Can I Get It?
• NDA!
• But soonish, I think
• Sorry…
NASI SPONSORZY I PARTNERZY

Organizacja: Polskie Stowarzyszenie Użytkowników SQL Server - PLSSUG
Produkcja: DATA MASTER Maciej Pilecki

More Related Content

What's hot

What's hot (19)

Creating a Tabular Model Using SQL Server 2012 Analysis Services
Creating a Tabular Model Using SQL Server 2012 Analysis ServicesCreating a Tabular Model Using SQL Server 2012 Analysis Services
Creating a Tabular Model Using SQL Server 2012 Analysis Services
 
Building a SSAS Tabular Model Database
Building a SSAS Tabular Model DatabaseBuilding a SSAS Tabular Model Database
Building a SSAS Tabular Model Database
 
Power BI Report Server & Office Online Server
Power BI Report Server & Office Online ServerPower BI Report Server & Office Online Server
Power BI Report Server & Office Online Server
 
From Excel hero to Power BI champion
From Excel hero to Power BI championFrom Excel hero to Power BI champion
From Excel hero to Power BI champion
 
Extreme SSAS - Part I
Extreme SSAS  - Part IExtreme SSAS  - Part I
Extreme SSAS - Part I
 
Certifiably Tableau Presentation
Certifiably Tableau PresentationCertifiably Tableau Presentation
Certifiably Tableau Presentation
 
Cloudant
CloudantCloudant
Cloudant
 
Introduction to DAX - Part 1
Introduction to DAX - Part 1Introduction to DAX - Part 1
Introduction to DAX - Part 1
 
TABLEAU for Beginners
TABLEAU for BeginnersTABLEAU for Beginners
TABLEAU for Beginners
 
Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...
Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...
Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...
 
New features of sql server 2016 bi features
New features of sql server 2016 bi featuresNew features of sql server 2016 bi features
New features of sql server 2016 bi features
 
Business Intelligence Portfolio
Business Intelligence PortfolioBusiness Intelligence Portfolio
Business Intelligence Portfolio
 
SSAS Tabular model importance and uses
SSAS  Tabular model importance and usesSSAS  Tabular model importance and uses
SSAS Tabular model importance and uses
 
Designing dashboards for performance shridhar wip 040613
Designing dashboards for performance shridhar wip 040613Designing dashboards for performance shridhar wip 040613
Designing dashboards for performance shridhar wip 040613
 
Power BI Overview
Power BI OverviewPower BI Overview
Power BI Overview
 
Power BI / AAS Model Optimization
Power BI / AAS Model OptimizationPower BI / AAS Model Optimization
Power BI / AAS Model Optimization
 
Austin Tableau User Group Presentation
Austin Tableau User Group PresentationAustin Tableau User Group Presentation
Austin Tableau User Group Presentation
 
Tableau Architecture
Tableau ArchitectureTableau Architecture
Tableau Architecture
 
Understanding Tableau's Visual Pipeline
Understanding Tableau's Visual PipelineUnderstanding Tableau's Visual Pipeline
Understanding Tableau's Visual Pipeline
 

Similar to SQLDay2013_ChrisWebb_DAXMD

SQL Server Workshop for Developers - Visual Studio Live! NY 2012
SQL Server Workshop for Developers - Visual Studio Live! NY 2012SQL Server Workshop for Developers - Visual Studio Live! NY 2012
SQL Server Workshop for Developers - Visual Studio Live! NY 2012
Andrew Brust
 
Ds03 data analysis
Ds03   data analysisDs03   data analysis
Ds03 data analysis
DotNetCampus
 
NoSQLDatabases
NoSQLDatabasesNoSQLDatabases
NoSQLDatabases
Adi Challa
 

Similar to SQLDay2013_ChrisWebb_DAXMD (20)

Real-world BISM in SQL Server 2012 SSAS
Real-world BISM in SQL Server 2012 SSASReal-world BISM in SQL Server 2012 SSAS
Real-world BISM in SQL Server 2012 SSAS
 
Microsoft SSAS: Should I Use Tabular or Multidimensional?
Microsoft SSAS: Should I Use Tabular or Multidimensional?Microsoft SSAS: Should I Use Tabular or Multidimensional?
Microsoft SSAS: Should I Use Tabular or Multidimensional?
 
Multidimensional or tabular points to consider
Multidimensional or tabular  points to considerMultidimensional or tabular  points to consider
Multidimensional or tabular points to consider
 
How to Survive as a Data Architect in a Polyglot Database World
How to Survive as a Data Architect in a Polyglot Database WorldHow to Survive as a Data Architect in a Polyglot Database World
How to Survive as a Data Architect in a Polyglot Database World
 
SQL Server Workshop for Developers - Visual Studio Live! NY 2012
SQL Server Workshop for Developers - Visual Studio Live! NY 2012SQL Server Workshop for Developers - Visual Studio Live! NY 2012
SQL Server Workshop for Developers - Visual Studio Live! NY 2012
 
Advanced modeling in Power BI - Azure Meetup Duesseldorf.pdf
Advanced modeling in Power BI - Azure Meetup Duesseldorf.pdfAdvanced modeling in Power BI - Azure Meetup Duesseldorf.pdf
Advanced modeling in Power BI - Azure Meetup Duesseldorf.pdf
 
SQL Server 2016 BI updates
SQL Server 2016 BI updatesSQL Server 2016 BI updates
SQL Server 2016 BI updates
 
Ds03 data analysis
Ds03   data analysisDs03   data analysis
Ds03 data analysis
 
SSAS, MDX , Cube understanding, Browsing and Tools information
SSAS, MDX , Cube understanding, Browsing and Tools information SSAS, MDX , Cube understanding, Browsing and Tools information
SSAS, MDX , Cube understanding, Browsing and Tools information
 
Tableau Seattle BI Event How Tableau Changed My Life
Tableau Seattle BI Event How Tableau Changed My LifeTableau Seattle BI Event How Tableau Changed My Life
Tableau Seattle BI Event How Tableau Changed My Life
 
MySQL Visual Analysis and Scale-out Strategy definition - Webinar deck
MySQL Visual Analysis and Scale-out Strategy definition - Webinar deckMySQL Visual Analysis and Scale-out Strategy definition - Webinar deck
MySQL Visual Analysis and Scale-out Strategy definition - Webinar deck
 
Schema less table & dynamic schema
Schema less table & dynamic schemaSchema less table & dynamic schema
Schema less table & dynamic schema
 
SSAS Design & Incremental Processing - PASSMN May 2010
SSAS Design & Incremental Processing - PASSMN May 2010SSAS Design & Incremental Processing - PASSMN May 2010
SSAS Design & Incremental Processing - PASSMN May 2010
 
Evolution of Distributed Database Technologies in the Digital era
Evolution of Distributed Database Technologies in the Digital eraEvolution of Distributed Database Technologies in the Digital era
Evolution of Distributed Database Technologies in the Digital era
 
NoSql Brownbag
NoSql BrownbagNoSql Brownbag
NoSql Brownbag
 
Power BI / AAS Data Model Optimization 101 v2
Power BI / AAS Data Model Optimization 101 v2Power BI / AAS Data Model Optimization 101 v2
Power BI / AAS Data Model Optimization 101 v2
 
Afternoons with Azure - Power BI and Azure Analysis Services
Afternoons with Azure - Power BI and Azure Analysis ServicesAfternoons with Azure - Power BI and Azure Analysis Services
Afternoons with Azure - Power BI and Azure Analysis Services
 
Dax & sql in power bi
Dax & sql in power biDax & sql in power bi
Dax & sql in power bi
 
Webinar: Migrating from RDBMS to MongoDB
Webinar: Migrating from RDBMS to MongoDBWebinar: Migrating from RDBMS to MongoDB
Webinar: Migrating from RDBMS to MongoDB
 
NoSQLDatabases
NoSQLDatabasesNoSQLDatabases
NoSQLDatabases
 

More from Polish SQL Server User Group

SQLDay2013_PawełPotasiński_ParallelDataWareHouse
SQLDay2013_PawełPotasiński_ParallelDataWareHouseSQLDay2013_PawełPotasiński_ParallelDataWareHouse
SQLDay2013_PawełPotasiński_ParallelDataWareHouse
Polish SQL Server User Group
 
SQLDay2013_PawełPotasiński_GeografiaSQLServer2012
SQLDay2013_PawełPotasiński_GeografiaSQLServer2012SQLDay2013_PawełPotasiński_GeografiaSQLServer2012
SQLDay2013_PawełPotasiński_GeografiaSQLServer2012
Polish SQL Server User Group
 
SQLDay2013_MarcinSzeliga_SQLServer2012FastTrackDWReferenceArchitectures
SQLDay2013_MarcinSzeliga_SQLServer2012FastTrackDWReferenceArchitecturesSQLDay2013_MarcinSzeliga_SQLServer2012FastTrackDWReferenceArchitectures
SQLDay2013_MarcinSzeliga_SQLServer2012FastTrackDWReferenceArchitectures
Polish SQL Server User Group
 
SQLDay2013_Denny Cherry - Table indexing for the .NET Developer
SQLDay2013_Denny Cherry - Table indexing for the .NET DeveloperSQLDay2013_Denny Cherry - Table indexing for the .NET Developer
SQLDay2013_Denny Cherry - Table indexing for the .NET Developer
Polish SQL Server User Group
 
SQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorld
SQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorldSQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorld
SQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorld
Polish SQL Server User Group
 
SQLDay2013_DennyCherry_GettingSQLServiceBrokerUp&Running
SQLDay2013_DennyCherry_GettingSQLServiceBrokerUp&RunningSQLDay2013_DennyCherry_GettingSQLServiceBrokerUp&Running
SQLDay2013_DennyCherry_GettingSQLServiceBrokerUp&Running
Polish SQL Server User Group
 
SQL DAY 2012 | DEV Track | Session 6 - Master Data Management by W.Bielski 6 ...
SQL DAY 2012 | DEV Track | Session 6 - Master Data Management by W.Bielski 6 ...SQL DAY 2012 | DEV Track | Session 6 - Master Data Management by W.Bielski 6 ...
SQL DAY 2012 | DEV Track | Session 6 - Master Data Management by W.Bielski 6 ...
Polish SQL Server User Group
 
SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta...
SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta...SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta...
SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta...
Polish SQL Server User Group
 
SQL DAY 2012 | DEV Track | Session 9 - Data Mining Analiza Przepływowa by M.S...
SQL DAY 2012 | DEV Track | Session 9 - Data Mining Analiza Przepływowa by M.S...SQL DAY 2012 | DEV Track | Session 9 - Data Mining Analiza Przepływowa by M.S...
SQL DAY 2012 | DEV Track | Session 9 - Data Mining Analiza Przepływowa by M.S...
Polish SQL Server User Group
 
26th_Meetup_of_PLSSUG_WROCLAW-ColumnStore_Indexes_byBeataZalewa_scripts
26th_Meetup_of_PLSSUG_WROCLAW-ColumnStore_Indexes_byBeataZalewa_scripts26th_Meetup_of_PLSSUG_WROCLAW-ColumnStore_Indexes_byBeataZalewa_scripts
26th_Meetup_of_PLSSUG_WROCLAW-ColumnStore_Indexes_byBeataZalewa_scripts
Polish SQL Server User Group
 
26th_Meetup_of_PLSSUG-ColumnStore_Indexes_byBeataZalewa_session
26th_Meetup_of_PLSSUG-ColumnStore_Indexes_byBeataZalewa_session26th_Meetup_of_PLSSUG-ColumnStore_Indexes_byBeataZalewa_session
26th_Meetup_of_PLSSUG-ColumnStore_Indexes_byBeataZalewa_session
Polish SQL Server User Group
 

More from Polish SQL Server User Group (20)

SQLDay2013_PawełPotasiński_ParallelDataWareHouse
SQLDay2013_PawełPotasiński_ParallelDataWareHouseSQLDay2013_PawełPotasiński_ParallelDataWareHouse
SQLDay2013_PawełPotasiński_ParallelDataWareHouse
 
SQLDay2013_PawełPotasiński_GeografiaSQLServer2012
SQLDay2013_PawełPotasiński_GeografiaSQLServer2012SQLDay2013_PawełPotasiński_GeografiaSQLServer2012
SQLDay2013_PawełPotasiński_GeografiaSQLServer2012
 
SQLDay2013_MarekAdamczuk_Kursory
SQLDay2013_MarekAdamczuk_KursorySQLDay2013_MarekAdamczuk_Kursory
SQLDay2013_MarekAdamczuk_Kursory
 
SQLDay2013_MarcinSzeliga_SQLServer2012FastTrackDWReferenceArchitectures
SQLDay2013_MarcinSzeliga_SQLServer2012FastTrackDWReferenceArchitecturesSQLDay2013_MarcinSzeliga_SQLServer2012FastTrackDWReferenceArchitectures
SQLDay2013_MarcinSzeliga_SQLServer2012FastTrackDWReferenceArchitectures
 
SQLDay2013_MarcinSzeliga_DataInDataMining
SQLDay2013_MarcinSzeliga_DataInDataMiningSQLDay2013_MarcinSzeliga_DataInDataMining
SQLDay2013_MarcinSzeliga_DataInDataMining
 
SQLDay2013_MaciejPilecki_Lock&Latches
SQLDay2013_MaciejPilecki_Lock&LatchesSQLDay2013_MaciejPilecki_Lock&Latches
SQLDay2013_MaciejPilecki_Lock&Latches
 
SQLDay2013_GrzegorzStolecki_RealTimeOLAP
SQLDay2013_GrzegorzStolecki_RealTimeOLAPSQLDay2013_GrzegorzStolecki_RealTimeOLAP
SQLDay2013_GrzegorzStolecki_RealTimeOLAP
 
SQLDay2013_GrzegorzStolecki_KonsolidacjaBI
SQLDay2013_GrzegorzStolecki_KonsolidacjaBISQLDay2013_GrzegorzStolecki_KonsolidacjaBI
SQLDay2013_GrzegorzStolecki_KonsolidacjaBI
 
SQLDay2013_Denny Cherry - Table indexing for the .NET Developer
SQLDay2013_Denny Cherry - Table indexing for the .NET DeveloperSQLDay2013_Denny Cherry - Table indexing for the .NET Developer
SQLDay2013_Denny Cherry - Table indexing for the .NET Developer
 
SQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorld
SQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorldSQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorld
SQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorld
 
SQLDay2013_DennyCherry_GettingSQLServiceBrokerUp&Running
SQLDay2013_DennyCherry_GettingSQLServiceBrokerUp&RunningSQLDay2013_DennyCherry_GettingSQLServiceBrokerUp&Running
SQLDay2013_DennyCherry_GettingSQLServiceBrokerUp&Running
 
SQLDay2013_ChrisWebb_SSASDesignMistakes
SQLDay2013_ChrisWebb_SSASDesignMistakesSQLDay2013_ChrisWebb_SSASDesignMistakes
SQLDay2013_ChrisWebb_SSASDesignMistakes
 
SQLDay2013_MarcinSzeliga_StoredProcedures
SQLDay2013_MarcinSzeliga_StoredProceduresSQLDay2013_MarcinSzeliga_StoredProcedures
SQLDay2013_MarcinSzeliga_StoredProcedures
 
SQL DAY 2012 | DEV Track | Session 6 - Master Data Management by W.Bielski 6 ...
SQL DAY 2012 | DEV Track | Session 6 - Master Data Management by W.Bielski 6 ...SQL DAY 2012 | DEV Track | Session 6 - Master Data Management by W.Bielski 6 ...
SQL DAY 2012 | DEV Track | Session 6 - Master Data Management by W.Bielski 6 ...
 
SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta...
SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta...SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta...
SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta...
 
SQL DAY 2012 | DEV Track | Session 9 - Data Mining Analiza Przepływowa by M.S...
SQL DAY 2012 | DEV Track | Session 9 - Data Mining Analiza Przepływowa by M.S...SQL DAY 2012 | DEV Track | Session 9 - Data Mining Analiza Przepływowa by M.S...
SQL DAY 2012 | DEV Track | Session 9 - Data Mining Analiza Przepływowa by M.S...
 
26th_Meetup_of_PLSSUG_WROCLAW-ColumnStore_Indexes_byBeataZalewa_scripts
26th_Meetup_of_PLSSUG_WROCLAW-ColumnStore_Indexes_byBeataZalewa_scripts26th_Meetup_of_PLSSUG_WROCLAW-ColumnStore_Indexes_byBeataZalewa_scripts
26th_Meetup_of_PLSSUG_WROCLAW-ColumnStore_Indexes_byBeataZalewa_scripts
 
26th_Meetup_of_PLSSUG-ColumnStore_Indexes_byBeataZalewa_session
26th_Meetup_of_PLSSUG-ColumnStore_Indexes_byBeataZalewa_session26th_Meetup_of_PLSSUG-ColumnStore_Indexes_byBeataZalewa_session
26th_Meetup_of_PLSSUG-ColumnStore_Indexes_byBeataZalewa_session
 
SQLDay2011_Sesja03_Fakty,MiaryISwiatRealny_GrzegorzStolecki
SQLDay2011_Sesja03_Fakty,MiaryISwiatRealny_GrzegorzStoleckiSQLDay2011_Sesja03_Fakty,MiaryISwiatRealny_GrzegorzStolecki
SQLDay2011_Sesja03_Fakty,MiaryISwiatRealny_GrzegorzStolecki
 
SQLDay2011_Sesja02_Collation_Marek Adamczuk
SQLDay2011_Sesja02_Collation_Marek AdamczukSQLDay2011_Sesja02_Collation_Marek Adamczuk
SQLDay2011_Sesja02_Collation_Marek Adamczuk
 

Recently uploaded

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Recently uploaded (20)

Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 

SQLDay2013_ChrisWebb_DAXMD

  • 1. NASI SPONSORZY I PARTNERZY
  • 2. DAXMD: SSAS Meets DAX and Power View Chris Webb chris@Crossjoin.co.uk
  • 3. Who Am I? • Chris Webb • Email: chris@crossjoin.co.uk • Twitter @Technitrain • • Analysis Services consultant and trainer: www.crossjoin.co.uk & www.technitrain.com Co-author: • MDX Solutions • Expert Cube Development with SSAS 2008 • Analysis Services 2012: The BISM Tabular Model • • SQL Server MVP Blogger: http://cwebbbi.wordpress.com
  • 4. Who Remembers the Good Old Days?
  • 5. The Golden Age of SSAS Cubes! SQLDay 2013
  • 6. We Built Some Great BI Solutions
  • 7. Have Those Days Gone Forever Now?
  • 8. No, There IS A Future For SSAS Cubes!
  • 9. Agenda • DAX on Multidimensional – What’s Changed and Why? • Multidimensional Objects and Tabular Metadata • A Guided Tour • Specific Scenarios • What Works and What Doesn’t • Writing Your Own DAX Queries • What All This Means For You
  • 10. The Story So Far • There are two versions of Analysis Services 2012: Multidimensional and Tabular • Multidimensional only speaks MDX, Tabular speaks DAX and MDX • Excel PivotTables generate MDX queries so they work with both • Power View is Microsoft’s cool new data visualisation tool – exists as part of Sharepoint and inside Excel 2013 • Power View generates DAX queries so it only works with Tabular • Therefore, today, to use Power View on SSAS you need to use Tabular
  • 11. Analysis Services 2012 SQL Server Other RDBMS Multidimensional MDX Excel / other SSAS clients Text OData Tabular Data Sources Analysis Services 2012 DAX Power View in Sharepoint Client Tools
  • 12. Analysis Services DAXMD SQL Server Other RDBMS Multidimensional MDX Excel / other SSAS clients Text OData Tabular Data Sources Analysis Services 2012 DAX Power View in Sharepoint Client Tools
  • 13. What’s Changed in DAXMD? • DAXMD is the codename for a new version of SSAS Multidimensional – Currently in public CTP • DAXMD supports DAX queries on SSAS Multidimensional cubes – DAX is not translated to MDX • This means Power View will work on SSAS Multidimensional cubes • Power View will have new features to support DAXMD • Will require an update to new versions of both SSAS 2012 Multidimensional and Power View in Sharepoint • Will not work with Excel 2013 Power View initially – Waiting for a service pack?
  • 14. SSAS Multidimensional Internal Architecture MDX Query MDX Query Support Formula Engine DAX Query DAX Query Support MOLAP/HOLAP/ROLAP Storage Engine
  • 15. Multidimensional – Tabular Object Mapping Multidimensional Object Appears in Tabular Metadata As CUBE MODEL CUBE DIMENSION TABLE ATTRIBUTE KEYS AND NAMES COLUMNS MEASURE GROUP TABLE MEASURE MEASURE MEASURE WITH NO MEASURE GROUP MEASURE IN TABLE CALLED “MEASURES” MEASURE GROUP -> CUBE DIMENSION RELATIONSHIP RELATIONSHIP PERSPECTIVE PERSPECTIVE KPI KPI USER OR PARENT/CHILD HIERARCHY HIERARCHY
  • 16. Connecting to a DAXMD Instance • Create a new Report Data Source connection file • Choose Data Source Type “Microsoft BI Semantic Model for Power View” • In the connection string, enter: – – – – The name of the DAXMD instance The database name The name of the cube you need to connect to If using Translations, also need to add Locale Identifier property • Choose appropriate credentials Data Source=WIN-LSBGBK95L52; Initial Catalog=DAXMDDemos; Cube=SimpleCube
  • 17. Maps and Images • To enable Power View maps on an attribute: – Set the dimension’s Type property to Geography – Set the attribute’s Type property to a value like GeographyCountry • To enable image urls in Power View: – Set the attribute’s Type property to ImageImageURL • Images stored as BLOBs in SSAS are not supported
  • 18. Parent/Child Hierarchies • Parent/Child Hierarchies are supported • But in Power View they appear as flattened tables with repeating values • You can only show one level’s values at a time
  • 19. Default Members • Default Members are supported • Become automatically applied filters in the filter pane – easy to override if you need to • Also apply filters to related attributes – Eg set a default member on City and Country gets filtered too
  • 20. Measures and Format Strings • Measures in Multidimensional return variants, and Power View now supports this • Power View supports some, but not all, format strings • Not supported: – – – – 4th section of format string for null values Some formats that return strings Some date formats Formats that return named values like True/False, On/Off
  • 21. Calculated Members • Calculated measures are 100% supported • Scoped assignments work fine too • Calculated members on non-measures dimensions only appear if – They are children of the All Member and there is at least one real member – There is no All Member and there is at least one real member • This means time utility/shell/date tool dimensions will work • Not supported: – Calculated members on user hierarchies – Calculated members on parent/child hierarchies – Attribute cannot be the key attribute unless it is the only attribute on the dimension
  • 22. Security • Dimension security works • Cell security is not supported though • Users that are members of roles that use cell security cannot connect via Power View
  • 23. What Else Doesn’t Work? • Not much, actually, apart from what’s already been mentioned • Actions do not appear in Power View • Some DAX functions like PATH() don’t work • You should be able to upgrade your cube and go
  • 24. Pinning Report Filters • Not a new feature in SSAS but it’s new in this CTP for Power View • It allows a report filter to be pinned across multiple views
  • 25. DAX Queries on DAXMD • You can also write your own DAX queries against a DAXMD model • To specify which cube to query, remember to use cube = insertcubename in the connection string • DAX queries can be written in SQL Server Management Studio – No useful metadata or intellisense though • They can be used in: – Excel – bound to a table – Reporting Services Reports – Third party tools that support DAX queries • Maybe faster/easier to write than MDX for list-type reports
  • 26. DISCOVER_CSDL_METADATA • This DMV is queried by Power View to get Tabular metadata • Returns CSDL (Conceptual Schema Definition Language) – the XML schema used by Entity Framework • Looking at what returns will help you make sense of the rules and restrictions on DAX queries in DAXMD
  • 27. DAX Queries and Member Keys • One dimension attribute will appear as one or more columns in the Tabular metadata – The number of columns depends on how you have configured the KeyColumns, NameColumn and ValueColumn properties • When writing DAX queries, you must include all key columns and name columns for an attribute in your query – Otherwise you will get an error! • Member properties also appear as columns in the Tabular metadata – Though they are not visible in Power View
  • 28. DAX Measures • Measures written in DAX can be defined in the DEFINE clause of a DAX query • Measures written in DAX cannot be defined in the cube’s MDX Script • DAX measures are unlikely to solve MDX calculation performance problems, but… • DAX measures could have some advantages over MDX measures: – Better handling of multi-select – Easier to write calculations that need to be aggregated – Implicit measures on dimension attributes, eg a distinct count on members of an attribute (though performance may not be great)
  • 29. DAXMD and the Future • DAXMD will mean you can upgrade your existing SSAS cubes to work with Power View in Sharepoint • Once Excel 2013 is updated, Power View in Excel will work too – and this is a much bigger deal • Upgrading will buy you time while Microsoft’s SSAS strategy becomes clear… – Or you upgrade to Tabular • Will there be any more new SSAS Multidimensional functionality after this?
  • 30. When Can I Get It? • NDA! • But soonish, I think • Sorry…
  • 31. NASI SPONSORZY I PARTNERZY Organizacja: Polskie Stowarzyszenie Użytkowników SQL Server - PLSSUG Produkcja: DATA MASTER Maciej Pilecki