Enriching your BI Semantic Models with Data Analysis Expressions (DAX) 4/29/2019 3:27 PM DBI323 Enriching your BI Semantic Models with Data Analysis Expressions (DAX) Kasper de Jonge SQL Server Analysis services team © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Session Objectives and Takeaways TechReady12 4/29/2019 Session Objectives and Takeaways DAX introduced in PowerPivot (SQL 2008 R2) DAX enhancements in SQL Server 2012 IT/BI Pros can use DAX with SQL Server Data Tools Demos of DAX in PowerPivot Demos of DAX as a Query Language in SSMS © 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
DAX – Data Analysis Expressions Introduced as part of PowerPivot add-in for Excel Formulas for calculated columns & measures Same syntax as Excel including many Excel functions Capabilities beyond Excel formulas: Navigate relationships Dynamic calculation of measures Table valued functions Time Intelligence
DAX Enhancements in SQL Server 2012 DAX used in both PowerPivot and Analysis Services (BISM) Enable DAX as a query language (used by Power View) Extend PowerPivot with more DAX functions Add functions that build data sets for reporting Add support for more complex data models Continue evolution of DAX expression language
DAX Formulas in SQL Server 2012 TechReady12 4/29/2019 demo DAX Formulas in SQL Server 2012 © 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
DAX for the BI Pro DAX Introduced with PowerPivot for Excel SQL Server Data Tools (SSDT) now support Multidimensional and Tabular models DAX can be used in SSDT and SSMS in Denali Use DAX in row level security including dynamic security USERNAME() / CUSTOMDATA() functions in DAX
BI Semantic Model: Architecture Third-party applications Reporting Services SharePoint Insights Excel PowerPivot BI Semantic Model Multi- dimensional Data model Tabular Business logic and queries MDX DAX Direct Query Data access ROLAP MOLAP VertiPaq Databases LOB Applications Files OData Feeds Cloud Services
Querying the BI Semantic Model with DAX DAX query results are always a table (rowset) SQL Server 2012 adds DAX functions that return tables Users won’t author queries directly, Power View will send them
DAX Query Syntax DEFINE TechReady12 4/29/2019 DAX Query Syntax DEFINE MEASURE Table1 [measure1] = <DAX_Expression> EVALUATE <DAX Table Expression> ORDER BY <DAX_Expression> [ASC | DESC] © 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
demo DAX Queries TechReady12 4/29/2019 © 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
In Review: Session Objectives and Takeaways TechReady12 4/29/2019 In Review: Session Objectives and Takeaways DAX introduced in PowerPivot (SQL 2008 R2) DAX enhancements coming in SQL Server 2012 IT Pros can use DAX in Analysis Services with SSDT Demos of DAX in PowerPivot Demos of DAX as a Query Language in SSMS © 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Related Content DBI413 - Many-to-Many Relationships in BISM Tabular DBI301 - Building Self-Service BI Applications Using PowerPivot DBI319 - BISM: Multidimensional vs. Tabular DBI414 - Optimizing Your BI Semantic Model for Performance and Scale
Kasper de Jonge http://www.PowerPivotblog.nl kadejo@microsoft.com @kjonge
mva Track Resources SQL Server 2012 Eval Copy Hands-On Labs @sqlserver @ms_teched mva Microsoft Virtual Academy Get Certified!
Resources Learning TechNet http://europe.msteched.com Connect. Share. Discuss. http://europe.msteched.com Microsoft Certification & Training Resources www.microsoft.com/learning TechNet Resources for IT Professionals http://microsoft.com/technet Resources for Developers http://microsoft.com/msdn
Submit your evals online 4/29/2019 3:27 PM Evaluations Submit your evals online http://europe.msteched.com/sessions © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
4/29/2019 3:27 PM © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
4/29/2019 3:27 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.