Ashwani Roy Senior Consultant –Information Management Group Supercharge MDX Using MDX Studio Level 300.

Slides:



Advertisements
Similar presentations
Microsoft Dynamics® AX 2012
Advertisements

Esri International User Conference | San Diego, CA Demo Theater | ArcGIS Beta Community and ArcGIS 10.1 Beta Program Mike Hogan & Rohit Gupta July 12 th,
DevScopeInnovation EventSandro Pereira Azure Service Bus EAI/EDI.
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Adam Jorgensen Pragmatic Works Performance Optimization in SQL Server Analysis Services 2008.
Mick Badran – BizTalk MVP Training and Integration Specialist Breeze SOA314.
Memory Management in SQL Server Analysis Services
Faith Allington Program Manager Microsoft Corporation WSV322.
How to use the samples provided as part of the CRM Analytics Accelerator to enhance your CRM implementation Catherine Eibner – Dynamics Developer Evangelist,
LeadManager™- Internet Marketing Lead Management Solution May, 2009.
Use the tools support uses.
Chris Webb Crossjoin Consulting Ltd
Cache –Warming Strategies for Analysis Services 2008 Chris Webb Crossjoin Consulting Limited
Monitoring Exchange 2010 with System Center Operations Manager
C van Ingen, D Agarwal, M Goode, J Gupchup, J Hunt, R Leonardson, M Rodriguez, N Li Berkeley Water Center John Hopkins University Lawrence Berkeley Laboratory.
MSBI ONLINE TRANING Contact our Support Team : SOFTNSOL India: Skype id : softnsoltrainings id:
Introduction to OLAP cubes My name: ZULFIQAR SYED Holds BSEE from Illinois Institute of Technology, Chicago, ILLINOIS. Holds BSEE from Illinois Institute.
Introduction Paul Turley SqlServerBiBlog.com Mentor, SQL Server MVP
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Marius Dumitru Sivakumar Harinath Gonzalo Isaza Akshai Mirchandani.
Connect with life Praveen Srvatsa Director | AsthraSoft Consulting Microsoft Regional Director, Bangalore Microsoft MVP, ASP.NET.
Microsoft ® Official Course Monitoring and Troubleshooting Custom SharePoint Solutions SharePoint Practice Microsoft SharePoint 2013.
SQL Server memory architecture and debugging memory Issues
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
WEB329 ASP.NET: A Lap Around the New Enhancements for Web Developers in Microsoft Visual Studio 2005 Omar Khan Lead Program Manager Web Platform and Tools.
SharePoint 2010 Business Intelligence Module 6: Analysis Services.
Introduction to Solving Business Problems with MDX Robert Zare and Tom Conlon Program Managers Microsoft.
Performance Tuning Cubes and Queries in Analysis Services 2008 Chris Webb
Connect Learn Share Performance Optimization for Microsoft Dynamics CRM Presented by: Walter Grow Austin Jones.
Vidas Matelis, Toronto SQL Server User Group November 13, 2008.
Fun with Scoped Assignments
SQLRX – SQL Server Administration – Tips From the Trenches SQL Server Administration – Tips From the Trenches Troubleshooting Reports of Sudden Slowdowns.
BI Terminologies.
Platinum Gold Silver Group BY: [Remember get your Tickets for Entry, Coach, Drink] Feedback Forms: [Fill these out at the end of each session.
MDX G OTCHA ! S …or how to keep your hair dark…. Y OUR S PEAKER Boyan Penev Microsoft MVP: SQL Server for 2011 Expertise SSAS PowerPivot SSRS SSIS etc,
Sofia, Bulgaria | 9-10 October Troubleshooting Web Site Performance Issues with Visual Studio Team System Martin Kulov Director,.NET Development National.
Amit Bansal CTO | Peopleware India (unit of eDominer Systems) | |
Connect with life Vinod Kumar Technology Evangelist | Microsoft
1 2 3 The result is ALL Sales Territory Country.
DEV333 Instrumenting Applications for Manageability with the Enterprise Instrumentation Framework David Keogh Program Manager Visual Studio Enterprise.
Profiling Where does my application spend the time? Profiling1.
Troubleshooting SQL Server Performance: Tips &Tools Amit Khandelwal.
2 Advanced Dashboard Creation With Microsoft Office PerformancePoint Server 2007 Myles Matheson & Chris Du Toit Information Management Practice HP New.
Vinod Kumar MTC - Technology Specialist | Microsoft
Intro to Power BI Azhagappan Arunachalam.  Senior Database Architect   PowerBICentral.com  (blog on getting started.
Building web applications with the Windows Azure Platform Ido Flatow | Senior Architect | Sela | This session.
Advanced MDX Tips And Tricks Chris Webb. Who Am I? Chris Webb UK-based consultant and trainer:
Write DAX Queries using DAX Studio Alex Barbeau
Load Testing Analysis Services 30 th march 2012 Bob Duffy Database Architect Prodata SQL Centre of Excellence.
A highway through the mountains of data with the SQL Server Tabular Model This presentation is a walk through in-memory database and reporting features.
What's New in Visual Studio 2010 Debugging Brian Peek Senior Consultant, ASPSOFT, Inc. Microsoft MVP - C#
Advanced Analysis Services Security Chris Webb Crossjoin Consulting Limited.
Improve query performance with the new SQL Server 2016 query store!! Michelle Gutzait Principal Consultant at
Performance Optimization in Dynamics AX Chris Haley, Microsoft.
Meeting Date: September 27, 2007 Topic: Converting DTS to SSIS by Brian Knight.
Microsoft PowerBI – Advanced Solutions with Microsoft Excel and PowerBI Presented by: Phillip Guglielmi, CPA | Senior BI Consultant and Solutions Architect.
SQL Server Analysis Services Fundamentals
Benchmarking like a PRO
Introduction to SQL Server Analysis Services
6/16/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
6/19/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
Introduction to SQL Server Analysis Services
Toolkit for DAX Optimization
Introducing the SQL Server 2016 Query Store
SQL Server Analysis Services Fundamentals
TechEd /14/2018 6:26 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
TechEd /24/2018 6:19 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
SQL Server Performance Tuning Nowadays
Windows Phone application performance and optimization
Office 365 Development July 2014.
Presentation transcript:

Ashwani Roy Senior Consultant –Information Management Group Supercharge MDX Using MDX Studio Level 300

Speaker Intro Microsoft SQL Server MVP Senior Consultant with IMGROUP Specialising in Data Modelling, SSIS and SSAS,Performance tuning (SQL,MDX), C#, F# Speaker at various Community events including SQL Bits Answerer on Member of Authoring Team – SQL Server 2008 MCP exams Questions Blogger on and I

Agenda 1. What is MDX Studio 2. Why and How to use MDX Studio 1. Parser and Formatter 2. Performance Analysis 1. Query Tuning 2. Performance Counter Analysis 3. Profiling using MDX Studio 3. Debugging MDX Query 4. Questions

There is an app for..MDX Built By Mosha Pashumansky inventor of MDX MDX query Analyser Debugger for MDX Performance Monitoring and Optimization Perfmon Counter viewer And lots of other tools and utility that Management studio lacks An Online Version as well

The Online Version Cool consultants working at customer site, where software installations are not allowed

Why and How to use MDX Studio

Most popular feature ever !! One Click Formatting Parsing Produces a Intuitive parse tree with Code Snippet highlighting Clear Cache in one click

DEMO 1:- Parser and Formatter DEMO.. Sorry have to skip

Performance Analysis MDX Studio

Performance Tuning –Analyse and Tune

FE Query plan FE Cache SE Cache SE Query plan Under the Hood Formula Engine Storage Engine

Steroids for MDX Formula engine Caching Dynamic Sets Bulk Evaluation Mode Not Discussed in this Session Aggregations Attribute Relationships Cache Warming Many More (Refer the SSAS performance Whitepaper)

What is formula engine caching A Scenario Calculation 1 - {f(x)}/{g(x)} Calculation 2 - {h(x)}/{g(x)} g(x) is being computed in both times

What is formula engine caching Can be Optimized to Calculation 0- {g(x)}

DEMO 2:- FE caching WITH MEMBER [Measures].CALCULATION1 AS [Measures].[Internet Sales Amount] / Count ( BottomSum ( [Account].[Account].[Account].MEMBERS* [Date].[Date].[Date].MEMBERS,10,[Measures].[Internet Sales Amount]) ) MEMBER [Measures].CALCULATION2 AS [Measures].[Internet Tax Amount] / Count ( BottomSum ( [Account].[Account].[Account].MEMBERS* [Date].[Date].[Date].MEMBERS,10,[Measures].[Internet Sales Amount]) ) SELECT { [Measures].CALCULATION1,[Measures].CALCULATION2 } ON 0,[Customer].[Gender].[Gender].MEMBERS ON 1 FROM [Adventure Works]; WITH MEMBER [Measures].CALCULATION0 AS Count ( BottomSum ( [Account].[Account].[Account].MEMBERS * [Date].[Date].[Date].MEMBERS,10,[Measures].[Internet Sales Amount] ) MEMBER [Measures].CALCULATION1 AS [Measures].[Internet Sales Amount] / [Measures].CALCULATION0 MEMBER [Measures].CALCULATION2 AS [Measures].[Internet Tax Amount] / [Measures].CALCULATION0 SELECT { [Measures].CALCULATION1,[Measures].CALCULATION2 } ON 0,[Customer].[Gender].[Gender].MEMBERS ON 1 FROM [Adventure Works];

DEMO 3 :- Dynamic Sets !! WITH MEMBER MEASURES.MYRANK AS Rank ( [Date].[Date].CurrentMember,Order ( [Date].[Date].[Date].MEMBERS,[Measures].[Internet Sales Amount],BDESC ) SELECT MEASURES.MYRANK ON 0,[Date].[Date].[Date].MEMBERS ON 1 FROM [Adventure Works]; WITH SET MYSET AS Order ( [Date].[Date].[Date].MEMBERS,[Measures].[Internet Sales Amount],BDESC ) MEMBER MEASURES.MYRANK AS Rank ( [Date].[Date].CurrentMember,MYSET ) SELECT MEASURES.MYRANK ON 0,[Date].[Date].[Date].MEMBERS ON 1 FROM [Adventure Works];

Bulk Computation Most important optimization technique with MDX in Analysis Services is to rewrite MDX in such a way that makes block computations possible. …Mosha vs.

DEMO 4 : - Bulk ComputationHow Many satisfy a condition WITH MEMBER [Measures].[ProductsONInternet] AS Count ( Filter //Products Ordered On Internet ( [Product].[Product].[Product], [Measures].[Internet Order Quantity] > 0 ) SELECT [Customer].[Customer Geography].[Country].MEMBERS ON 0 //Geographically,[Date].[Calendar].[Date].MEMBERS ON 1 FROM [Adventure Works] WHERE [Measures].[ProductsONInternet]; WITH MEMBER [Measures].[ProductsONInternet] AS IIF ( [Measures].[Internet Order Quantity] > 0,1,NULL ) SELECT //Geographically [Customer].[Customer Geography].[Country].MEMBERS ON 0,[Date].[Calendar].[Date].MEMBERS ON 1 FROM [Adventure Works] WHERE [Measures].[ProductsONInternet];

Quiz-Spot what can go wrong WITH MEMBER [Measures].AvgProductSales AS Avg ( NonEmpty ( [Product].[Product].[Product].MEM BERS,[Measures].[Sales Amount] ),[Measures].[Sales Amount] ) SELECT [Measures].AvgProductSales ON 0,[Date].[Date].[Date].MEMBERS ON 1 FROM [Adventure Works];

Bulk Computation Demo WITH MEMBER [Measures].[SalesGrowth] AS IIF ( Measures.[Sales Amount] > ( [Measures].[Sales Amount],ParallelPeriod([Date].[Calendar].[Month]) ),[Measures].[Sales Amount],NULL ) MEMBER [Measures].AvgGrowingProducts AS Avg ( [Product].[Product].[Product].MEMBERS,[Measures].[SalesGrowth] ) SELECT [Measures].AvgGrowingProducts ON 0,Descendants ( [Date].[Calendar].[Calendar Year].&[2003],[Date].[Calendar].[Date] ) ON 1 FROM [Adventure Works]; WITH MEMBER [Measures].AvgGrowingProducts AS Avg ( Filter ( [Product].[Product].[Product].MEMBERS, [Measures].[Sales Amount] > ( [Measures].[Sales Amount],ParallelPeriod([Date].[Calendar].[Month]) ),[Measures].[Sales Amount] ) SELECT [Measures].AvgGrowingProducts ON 0,Descendants ( [Date].[Calendar].[Calendar Year].&[2003],[Date].[Calendar].[Date] ) ON 1 FROM [Adventure Works];

Profiling and Debugging Using MDX Studio

MY PAIN with Management Studio Which Perfmon Counters I want to catch Running Perfmon AND Profiler Trace AND Query Window at same time.. Annoying Logs of Unwanted events logged in trace Events for other queries running on server might impact your collected trace counter

MDXProfiler and Debugger DEMO

PerfMon Counters.. what do they stand for RUN AS ADMINSTRATORTO GET THIS

PerfMon Counters.. what do they stand for V Time- Time taken to execute MDX Cells Calculated – No. Of cells evaluated to arrive at result set High Number Indicates cell-by-cell computation Calc Covers –No of Calculation Covers(sub cube over which calculation is applied) High Number Indicates cell-by-cell computation Sonar Sub cube-Number of sub cubes generated by Formula engine (SONAR algorithm) High Number Indicates cell-by-cell computation SE Queries – Number of queries answered by Storage Engine High Number Indicates less data from cache. Cache warming will help Please refer SSAS Performance Whitepaper for more

Summary Watch out for High cells evaluation Try to use the formula engine caching Use functions optimized for bulk evaluation Use MDX studio to help you analyze and suggest improvements Use it and give feedback studio/ studio/ Debug you MDX. It is the easiest way to find out bugs with dataset reported Read the performance optimization whitepaper on SSAS. It is the best and most reliable source of performance optimization techniques

Questions THANK YOU