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,

Slides:



Advertisements
Similar presentations
Cache –Warming Strategies for Analysis Services 2008 Chris Webb Crossjoin Consulting Limited
Advertisements

Atlanta.MDF MDX Overview. What Is MDX? MDX is Multi Dimensional EXpressions MDX is the syntax for querying an Analysis Services database MDX is part of.
Line Efficiency     Percentage Month Today’s Date
Unit Number Oct 2011 Nov 2011 Dec 2011 Jan 2012 Feb 2012 Mar 2012 Apr 2012 May 2012 Jun 2012 Jul 2012 Aug 2012 Sep (3/4 Unit) 7 8 Units.
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
Vidas Matelis, Toronto SQL Server User Group November 13, 2008.
MDX Overview. What Is MDX? MDX is Multi Dimensional EXpressions MDX is the syntax for querying an Analysis Services database MDX is part of the OLE DB.
ProjectImpactResourcesDeadlineResourcesDeadline Forecast Plan Time Resources Risk 001xx 002xx 003xx 004xx 005xx 006xx 007xx TotalXX Example 1: Portfolio.
Or How I Learned to Love the Cube…. Alexander P. Nykolaiszyn BLOG:
Gantt Chart of Progress FY
Windows Server 2008 R2 Oct 2009 Windows Server 2003
Deployment timelines LHCb CMS ATLAS 2007 Dec Nov Oct Sep Aug Jul Jun
SPOUSE LEADERSHIP DEVELOPMENT COURSE (SLDC) CLASS 68
Jan 2016 Solar Lunar Data.
Instruction This template should be used Only for The Best Employee Engagement category. Template can be modified, subject to your company template or.
IT Strategy Roadmap Template
Timeline Roadmap Template

Analyzing patterns in the phenomena
Q1 Jan Feb Mar ENTER TEXT HERE Notes
Jul Aug Sept Oct Nov Dec Jan Feb Mar Apr May Jun

Project timeline # 3 Step # 3 is about x, y and z # 2
Average Monthly Temperature and Rainfall
80-Hour SHARP Certification Course Schedule
IT STRATEGY ROADMAP TEMPLATE


Mammoth Caves National Park, Kentucky
2017 Jan Sun Mon Tue Wed Thu Fri Sat
Timeline PowerPoint Template

Gantt Chart Enter Year Here Activities Jan Feb Mar Apr May Jun Jul Aug
Jul Aug Sept Oct Nov Dec Jan Feb Mar Apr May Jun
Q1 Q2 Q3 Q4 PRODUCT ROADMAP TITLE Roadmap Tagline MILESTONE MILESTONE
Free PPT Diagrams : ALLPPT.com


Step 3 Step 2 Step 1 Put your text here Put your text here
Calendar Year 2009 Insure Oklahoma Total & Projected Enrollment
MONTH CYCLE BEGINS CYCLE ENDS DUE TO FINANCE JUL /2/2015
Jan Sun Mon Tue Wed Thu Fri Sat
IT STRATEGY ROADMAP TEMPLATE

©G Dear 2008 – Not to be sold/Free to use
Electricity Cost and Use – FY 2016 and FY 2017

Safety Group Program Timeline
Unemployment in Today’s Economy
Text for section 1 1 Text for section 2 2 Text for section 3 3
Text for section 1 1 Text for section 2 2 Text for section 3 3
Text for section 1 1 Text for section 2 2 Text for section 3 3
Text for section 1 1 Text for section 2 2 Text for section 3 3
Q1 Q2 Q3 Q4 PRODUCT ROADMAP TITLE Roadmap Tagline MILESTONE MILESTONE
Free PPT Diagrams : ALLPPT.com


Text for section 1 1 Text for section 2 2 Text for section 3 3
Text for section 1 1 Text for section 2 2 Text for section 3 3
Text for section 1 1 Text for section 2 2 Text for section 3 3
Text for section 1 1 Text for section 2 2 Text for section 3 3
Text for section 1 1 Text for section 2 2 Text for section 3 3
Text for section 1 1 Text for section 2 2 Text for section 3 3
Project timeline # 3 Step # 3 is about x, y and z # 2
TIMELINE NAME OF PROJECT Today 2016 Jan Feb Mar Apr May Jun
Safety Group Program Timeline

Q1 Q2 Q3 Q4 PRODUCT ROADMAP TITLE Roadmap Tagline MILESTONE MILESTONE
Pilot of revised survey
Presentation transcript:

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, etc, etc (you get the point ;) Blog:

Q UICK A GENDA MDX Problems Incorrect Data Models Under-used SSAS functionality Inefficient MDX Detecting Problems Demo (some examples)

MDX P ROBLEMS ( RE : D ATA M ODEL ) Leaf-Level Calculations SUM(DESCENDANTS(,,LEAVES), / ) SCOPE(LEAVES( ); This = / ; END SCOPE; Alternatives ETL, DB Views, DSV: / Demo

Root (All) 2008 Jan /01/2008 … 31/01/2008 Feb /02/2008 … 29/02/2008 … … … … Dec /12/2008 … 31/12/ Jan 2009 Leaves

MDX P ROBLEMS ( RE : D ATA M ODEL ) Date Calculations ParallelPeriod() ClosingPeriod() YTD(), QTD(), MTD() Common Causes Incomplete Date Dimensions (gaps, missing members) Wrong Structure (hierarchies, att rels) Dimensions not marked as Time

2008 Q1 08 Mar 2008 Q2 08 Apr 08 May 08 Jun 08 Q3 08 Jul 08 Aug 08 Q4 08 Oct 08 Nov 08 Dec 08 Closing Period(Q3 08) = Aug 08 ParallelPeriod(Quarter, Apr 08) = Mar 08

MDX P ROBLEMS ( RE : SSAS F UNCTIONALITY ) Semi-Additive Measures in EE Replicating the same behaviour in MDX Many 2 Many Relationships Performing SQL-style JOINs in MDX Measure Expressions Writing them in MDX Note that aggregations are not used with MEs

Fact A Dim1 Dim2 Dim3 Dim4 Fact B Dim1 Dim2 FactA.MeasureA (+-*/) FactB.MeasureB

MDX P ROBLEMS ( RE : I NEFFICIENT MDX) Using IIF instead of SCOPE (> importance in 2005) IIF(a.CurrentMember Is, NULL, ) is the same (functionally) as: SCOPE( ); This = NULL; END SCOPE;

MDX P ROBLEMS ( RE : I NEFFICIENT MDX) Set Operations Filter(..,..CurrentMember.MemberValue < ) is equivalent to: {NULL:...&[ ]} Demo

MDX P ROBLEMS ( RE : I NEFFICIENT MDX) Using VBA/Excel Functions VBA!Format() ~ FORMAT_STRING VBA!DateAdd() =....NextMember, or....PrevMember, or....Lag(n), or....Lead(n) VBA!DateDiff() = {... :... }.Count Demo

MDX P ROBLEMS ( RE : I NEFFICIENT MDX) StrToSet and StrToMember Use sparingly LinkMember, LookupCube Avoid at all costs Filter Often over-used, be cautious

D ETECTING P ROBLEMS Execution Time SQL Server Profiler Excessive number of data requests Touching too many partitions and aggregations Performance Monitor Several SSAS MDX counters Bulk mode evaluation nodes Cell-by-Cell evaluation nodes Number of cells evaluated Memory/CPU Utilisation

Q …and hopefully some A