Presentation is loading. Please wait.

Presentation is loading. Please wait.

INTRODUCTION TO MDX. Stick around for RAFFLE and the AFTER EVENT!  All our volunteers and organisers do not get paid for organizing this event – If.

Similar presentations


Presentation on theme: "INTRODUCTION TO MDX. Stick around for RAFFLE and the AFTER EVENT!  All our volunteers and organisers do not get paid for organizing this event – If."— Presentation transcript:

1 INTRODUCTION TO MDX

2

3 Stick around for RAFFLE and the AFTER EVENT!  All our volunteers and organisers do not get paid for organizing this event – If you see them, please:  Give them a hug  Shake their hand  Say thank you  Spread the word  Get involved yourself  Don’t forget to thank the sponsors for their support  Thank the speakers for donating their time, energy and expenses

4  WHAT  SQL  CUBE BASICS  MDX  HOW  SELECT, FROM, WHERE, SUBSELECT  SETS, MEMBERS  FUNCTIONS -  Q&A

5  Jens Vestergaard  Maersk Line IT – MSBI – Engineering  @vestergaardj  http://www.t-sql.dk / jv@t-sql.dk http://www.t-sql.dk

6  $5.200.000.000 GROUP PROFIT 2014 – One Pink Floyd song comes to mind…  3.000.000 CONTAINERS  300.000 REFRIGURATED (REEFERS)  25.000 LAND BASED EMPL.  7.000 AT SEA  600 VESSELS (20 TRIPPLE-E’S) (11 EVEN BIGGER ONES TO COME)  90+ COUNTRIES  1 BI/MDM DEPARTMENT

7 WHAT!

8  SELECT, FROM, WHERE  TWO DIMENSIONAL FORMAT

9

10  SELECT, FROM, WHERE  MULTI DIMENSIONAL FORMAT

11

12  Ordered collection of (at least) one member from one or more dimensions  Simple Tuple  [Date].[Fiscal].[Fiscal Year].&[2005]  If a tuple is composed of members from more than one dimension, the members represented by the tuple must be enclosed in parentheses  ([Date].[Fiscal].[Fiscal Year].&[2005], [Geography].[City].&[Baltimore]&[MD])  A tuple can encompass members in multiple dimensions, as well as multiple members from the same dimension.

13  In MDX syntax, tuples are enclosed in braces to construct a set.  A set is an ordered collection of zero, one or more tuples.  {([Date].[Fiscal].[Fiscal Year].&[2005], [Geography].[City].&[Baltimore]&[MD]) , ([Date].[Fiscal].[Fiscal Year].&[2006], [Geography].[City].&[Cincinnati]&[OH])}  A set can contain more than one occurrence of the same tuple.  {[Date].[Fiscal].[Fiscal Year].&[2005], [Date].[Fiscal].[Fiscal Year].&[2005]}  Certain MDX functions accept tuples as parameters, and will raise an error if a single tuple set is passed.  ([Date].[Fiscal].[Fiscal Year].&[2005]) ≠ { [Date].[Fiscal].[Fiscal Year].&[2005] }

14 HOW?

15  CurrentMember  DefaultMember  Anscestor  Cousin  Lag / Lead  NextMember / PrevMember

16  SUM / MIN / MAX / AVG / COUNT / DistinctCount  CoalesceEmpty  IIF

17  Ancestors  Ascendants  Descendants  SELF, BEFORE, AFTER, BEFORE_AND_AFTER, SELF_AND_AFTER, SELF_AND_BEFORE, SELF_BEFORE_AFTER, LEAVES  Generate  Except  Head / Tail  LastPeriods  MTD / QTD / YTD  Siblings  UNION

18  Empty Axis  Minus (-) SET ~ NOT IN  NonEmpty or NON EMPTY  Moving Averages  Date Calculations  IsLeaf  IsAncestor

19  Testing Permissions  Testing in Excel  Profiler

20 Q&AQ&A

21  MDX Function Reference: https://msdn.microsoft.com/en-us/library/ms145970.aspxhttps://msdn.microsoft.com/en-us/library/ms145970.aspx  Stairways to MDX*: http://www.sqlservercentral.com/stairway/72404/http://www.sqlservercentral.com/stairway/72404/  MSDN: https://msdn.microsoft.com/en-us/library/ms144785.aspxhttps://msdn.microsoft.com/en-us/library/ms144785.aspx  MSSQLTips: https://www.mssqltips.com/sqlservertip/2865/a-quick-way-to-start- learning-sql-server-mdx/https://www.mssqltips.com/sqlservertip/2865/a-quick-way-to-start- learning-sql-server-mdx/  Literature:  Fast Track to MDX: http://www.amazon.com/Fast-Track-MDX-2nd- second/dp/B006V0BNPE/ref=sr_1_2?ie=UTF8&qid=1441621996&sr=8- 2&keywords=mdx+fast+trackhttp://www.amazon.com/Fast-Track-MDX-2nd- second/dp/B006V0BNPE/ref=sr_1_2?ie=UTF8&qid=1441621996&sr=8- 2&keywords=mdx+fast+track  MDX Solutions: http://www.amazon.com/MDX-Solutions-Microsoft-Analysis-Services- ebook/dp/B001KU83FI/ref=sr_1_3?ie=UTF8&qid=1441622054&sr=8- 3&keywords=mdx+analysis+serviceshttp://www.amazon.com/MDX-Solutions-Microsoft-Analysis-Services- ebook/dp/B001KU83FI/ref=sr_1_3?ie=UTF8&qid=1441622054&sr=8- 3&keywords=mdx+analysis+services  Practical MDX Queries: http://www.amazon.com/Practical-MDX-Queries-Microsoft-Analysis- ebook/dp/B003QP3XGY/ref=pd_sim_351_4?ie=UTF8&refRID=1CNW10TRVP068BDEWJFJ&dpSrc=si ms&dpST=_AC_UL320_SR246%2C320_http://www.amazon.com/Practical-MDX-Queries-Microsoft-Analysis- ebook/dp/B003QP3XGY/ref=pd_sim_351_4?ie=UTF8&refRID=1CNW10TRVP068BDEWJFJ&dpSrc=si ms&dpST=_AC_UL320_SR246%2C320_


Download ppt "INTRODUCTION TO MDX. Stick around for RAFFLE and the AFTER EVENT!  All our volunteers and organisers do not get paid for organizing this event – If."

Similar presentations


Ads by Google