Download presentation
Presentation is loading. Please wait.
Published byErik Porter Modified over 8 years ago
1
INTRODUCTION TO MDX
3
Stick around for SWAG! (Prize drawing at 5.00 p.m) All our volunteers and organisers do not get paid for running SPS SQLSaturday Cambridge and do it because they believe in the power of community (or are just plain nuts). Please show your gratitude for making this possible by: Giving them a hug Shaking their hand Saying thank you Coming back next year Consider getting your company to pay for a precon next year Speading the word Getting involved yourself But most of all, by enjoying the day! Don’t forget to thank the sponsors for their support Thank the speakers for donating their time, energy and expenses
4
SQLCloud — XBox One!!! (make sure you know how to play the Jet Set Willy vendor competition!) SQLCloud—Dark Side Of The Moon, The Wall and Wish You Were Here Microsoft — MCP Voucher Data Idols — Supercar Driving Experience Profisee — Signed MDS Book and £50 Amazon Voucher SQLSentry — Plan Explorer PRO License Pyramid Analytics—Coffee Machine Effektor — Lego Big Ben Rencore — SPCAF Professional License (valued at $2099!) Axioworks — Amazon Fire TV and £75 Amazon Voucher DELL — Beats by Dr Dre Headphones Redgate — DLM Workshop Pluralsight — Annual Plus subscriptions All Your Base Conference — 3 x Conference Tickets VisualSP—Annual training subscription Loads of books and much much more!!!
5
WHAT SQL CUBE BASICS MDX HOW SELECT, FROM, WHERE, SUBSELECT SETS, MEMBERS FUNCTIONS - Q&A
6
Jens Vestergaard Maersk Line IT – MSBI – Engineering @vestergaardj http://www.t-sql.dk / jv@t-sql.dk http://www.t-sql.dk
7
$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
8
WHAT!
9
SELECT, FROM, WHERE TWO DIMENSIONAL FORMAT
11
SELECT, FROM, WHERE MULTI DIMENSIONAL FORMAT
13
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.
14
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] }
15
HOW?
16
CurrentMember DefaultMember Anscestor Cousin Lag / Lead NextMember / PrevMember
17
SUM / MIN / MAX / AVG / COUNT / DistinctCount CoalesceEmpty IIF
18
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
19
Empty Axis Minus (-) SET ~ NOT IN NonEmpty or NON EMPTY Moving Averages Date Calculations IsLeaf IsAncestor
20
Testing Permissions Testing in Excel Profiler
21
Q&AQ&A
22
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_
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.