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.

Slides:



Advertisements
Similar presentations
Chapter Three: Lists, Operators, Arithmetic CS 461.
Advertisements

Technical BI Project Lifecycle
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.
Implementing Business Analytics with MDX Chris Webb London September 29th.
Introduction to Solving Business Problems with MDX Robert Zare and Tom Conlon Program Managers Microsoft.
Solving Business Problems In OLAP Services Using MDX – Part I Amir Netz – Dev Manager & Architect Ariel Netz – Program Manager SQL Server OLAP Services.
Introduction to Analysis Services and OLAP Technology Tom Conlon and Rob Zare Program Managers SQL Server Business Intelligence Unit Microsoft Corp.
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,
Implementing Calculations Using MDX. Drinks Tea Lemon Earl Grey Coffee Columbian Dimension Family Relationships  Drinks is the Parent of Tea and Coffee.
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.
Gantt Chart of Progress FY
Windows Server 2008 R2 Oct 2009 Windows Server 2003
Jan 2016 Solar Lunar Data.
<workgroup name>
Explanation of Monthly Compensation Changes

2017 ELEVATE PLANNING CALENDAR
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



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

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
Gantt Chart of Progress FY
Free PPT Diagrams : ALLPPT.com

Proposed Strategic Planning Process for FY 2013/14 thru FY 2015/16

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
Bourke properties Houston, Whitney relocation info 23/02/2019.

©G Dear 2008 – Not to be sold/Free to use
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ITEM 1 ITEM 2 ITEM 3
Electricity Cost and Use – FY 2016 and FY 2017
ENTANGLEMENTS REPORTED

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

Q1 Q2 Q3 Q4 PRODUCT ROADMAP TITLE Roadmap Tagline MILESTONE MILESTONE
Change Management E2E Roadmap
Presentation transcript:

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 the OLE DB for OLAP spec MDX is the key for all advanced analytical capabilities of Analysis Services

Comparison To SQL SQL ConstructOLAP construct SELECT…SELECT… (MDX) CREATE…DSO object model DROP… INSERT… DELETE…

MDX Basics MDX allows easy navigation in the multi dimensional space It “understands” the MD concepts of cube, dimension, level, member and cell It is used for –Queries – full statements (SELECT…FROM) –Business modeling – defining calculated members using MDX Expressions – not a full statement

MDX Queries vs. MDX Expressions MDX Queries –Full statements (SELECT…FROM) –Usually generated by a query tools and applications such as Excel –MDX Sample App deals in queries MDX Expressions –Partial MDX statements –Define a calculated member, or a set, or member properties, etc. –Returns a single value (which may be a set)

MDX Myth Fact: MDX is used everywhere: Calculated members Calculated members Security settings Security settings Custom member rollup Custom member rollup Custom level rollup Custom level rollup Actions Actions Define named “Sets” Define named “Sets” Calculated cells Calculated cells “Only developers need to know MDX”

MDX Constructs Members: an item in a hierarchy –[John Doe] –[2001] –[2001].[Q1].[Jan] Tuple: an intersection of 2 or more members –([Product].[Drink].[Beverages], [Customers].[USA]) –([Product].[Non-Consumable], [2001]) Sets: a group of tuples or members –{[John Doe], [Jane Doe]} –{ ( [Non-Consumable], USA ), ( Beverages, Mexico ) } –[2001].Children –TopCount(Store.[Store Name]. Members, 10, Sales)

Groceries Clothing Appliances Sales Cost Units Every Cell Has A Name Measures Time Products

Groceries Clothing Appliances Sales Cost Units (Products.Clothing, Measures.Units, Time.[2000]) Every Cell Has A Name Measures Time Products

Groceries Clothing Appliances Sales Cost Units (Products.Clothing, Measures.Units, Time.[2000]) (Products.Clothing, Measures.Sales, Time.[1999]) Every Cell Has A Name Measures Time Products

Groceries Clothing Appliances Sales Cost Units (Products.Clothing, Measures.Units, Time.[2000]) (Products.Clothing, Measures.Sales, Time.[1999]) (Products.Groceries, Measures.Cost, Time.Year.[1997]) Every Cell Has A Name Measures Time Products

Groceries Clothing Appliances SalesCostUnits (Products.Clothing, Measures.Units, Time.[2000]) = (Products.CurrentMember, Measures.CurrentMember, Time.CurrentMember) The Current Cell: Currentmember

2000 Clothing Sales ? Naming Cells With Relative References...

2000 Clothing Sales ? ? (Products.Clothing, Measures.Sales, Time.[2000].PrevMember)

2000 Clothing Sales ? ? ? Naming Cells With Relative References... (Products.Clothing, Measures.Sales, Time.[2000].PrevMember) (Products.Clothing, Measures.Sales, Time.[2000].NextMember)

(Products.Clothing, Measures.Sales.PrevMember, Time.[2000].Lag(3)) 2000 Clothing Sales ? ? ? Naming Cells With Relative References... (Products.Clothing, Measures.Sales, Time.[2000].PrevMember) (Products.Clothing, Measures.Sales, Time.[2000].NextMember) OR(Products.Clothing,Measures.Sales.PrevMember, Time.[2000].Lead(-3))

Calculated Members Calculated members add significant power to Analysis cubes Pre-define complex business logic Pre-define complex business logic Usually create calculated measures Usually create calculated measures Computed at run- time Computed at run- time

1. How Did Sales This Period Compare With Sales In The Previous Period? YearQtrMonSales Q1120 Jan30 Feb40 Mar50 Q2200 Apr65 May45 Jun90 Q3185 Jul55 Aug60 Sep70 Q4285 Oct80 Nov100 Dec105

QtrMonSalesDelta Q Apr6515 May45-20 Jun How Did Sales This Period Compare With Sales In The Previous Period? (Time.CurrentMember, Measures.CurrentMember) =

QtrMonSalesDelta Q Apr6515 May45-20 Jun How Did Sales This Period Compare With Sales In The Previous Period? (Time.CurrentMember, Measures.CurrentMember) = (Time.CurrentMember, Measures.Sales) -

QtrMonSalesDelta Q Apr6515 May45-20 Jun9045 (Time.CurrentMember.PrevMember, Measures.Sales) 1. How Did Sales This Period Compare With Sales In The Previous Period? (Time.CurrentMember, Measures.CurrentMember) = (Time.CurrentMember, Measures.Sales) -

YearQtrMonSalesDelta Q1120 Jan30 Feb4010 Mar5010 Q Apr6515 May45-20 Jun9045 Q Jul55-35 Aug6015 Sep7010 Q Oct8010 Nov10020 Dec1055 Results For Question 1:

2. How Did Sales In The Current Period Compare With Sales In The Same Period Last Year? YearQtrMonSales Q1120 Jan30 Feb40 Mar50 Q4285 Oct80 Nov100 Dec Q1170 Jan50 Feb55 Mar65 Q4275 Oct90 Nov100 Dec85

YearQtrMonSalesAnnual Delta Q1120 Jan30 Feb40 Mar Q1170 Jan5020 Feb55 Mar65 2. How Did Sales In The Current Period Compare With Sales In The Same Period Last Year? (Time.CurrentMember, Measures.Sales)- (Time.CurrentMember.Lag(12), Measures.Sales)

YearQtrMonSalesAnnual Delta Q1120 Jan30 Feb40 Mar Q1170 Jan5020 Feb55 Mar65 2. How Did Sales In The Current Period Compare With Sales In The Same Period Last Year? (ParallelPeriod(Year,1,Time.CurrentMember), Measures.Sales) (Time.CurrentMember,Lag(12), Measures.Sales) (Time.CurrentMember, Measures.Sales)-

YearQtrMonSalesAnn. Delta Q1120 Jan30 Feb40 Mar50 Q4285 Oct80 Nov100 Dec Q Jan5020 Feb5515 Mar6515 Q Oct9010 Nov1000 Dec85-20 Results For Question 2:

3. What Have My Sales Been Since The Beginning Of The Year? YearQtrMonSales Q1120 Jan30 Feb40 Mar50 Q2200 Apr65 May45 Jun90 Q3185 Jul55 Aug60 Sep70 Q4285 Oct80 Nov100 Dec105

Time.Mar,Measures.Sales... Time.Jan,Measures.Sales + Time.Feb,Measures.Sales+ 3. What Have Sales Been Since The Beginning Of The Year? YearQtrMonSalesYTD Q1120 Jan30 Feb4070 Mar50120

Time.Mar,Measures.Sales Time.Jan,Measures.Sales + Time.Feb,Measures.Sales+ 3. What Have Sales Been Since The Beginning Of The Year? = Sum(YTD(Time.CurrentMember), Sales) YearQtrMonSalesYTD Q1120 Jan30 Feb4070 Mar50120

YearQtrMonSalesYTD Q1120 Jan30 Feb4070 Mar50120 Q Apr65185 May45230 Jun90320 Q Jul55375 Aug60435 Sep70505 Q Oct80585 Nov Dec Results For Question 3:

Questions