Download presentation
Presentation is loading. Please wait.
Published byTheodore Bailey Modified over 9 years ago
1
mailto : aloo_a2@yahoo.com for all Hyperion video tutorial/Training/Certification/Material Understanding MDX with BSO and ASO
2
mailto : aloo_a2@yahoo.com for all Hyperion video tutorial/Training/Certification/Material MDX Introduction
3
mailto : aloo_a2@yahoo.com for all Hyperion video tutorial/Training/Certification/Material MDX Introduction Multidimensional Expressions (MDX) lets you query multidimensional objects, such as cubes, and return multidimensional cell sets that contain the cube's data. In MDX, the SELECT statement specifies a result set that contains a subset of multidimensional data that has been returned from a cube. To specify a result set, an MDX query must contain the following information: The number of axes or sets of hierarchies. You can specify up to 64(0-63) axes in an MDX query. The members from each dimension to include on each axis of the MDX query. The name of the cube that sets the context of the MDX query. The members from a slicer axis on which data is sliced for members from the query axes. For more information about slicer and query axes.
4
mailto : aloo_a2@yahoo.com for all Hyperion video tutorial/Training/Certification/Material MDX Introduction
5
mailto : aloo_a2@yahoo.com for all Hyperion video tutorial/Training/Certification/Material Simple Select SELECT {Jan} ON COLUMNS FROM Sample.Basic Examples Simple Select SELECT {([100-10], [Actual])} ON COLUMNS FROM Sample.Basic
6
mailto : aloo_a2@yahoo.com for all Hyperion video tutorial/Training/Certification/Material
9
Introduction to Sets and Tuples A set is an ordered collection of one or more tuples that have the same dimensionality A tuple is a way to refer to a member or a member combination from any number of dimensions. For example, in the Sample Basic database, Jan is a tuple, and so is (Jan, Sales), and so is ([Jan],[Sales],[Cola],[Utah],[Actual]). In MDX Queries we specify AXIS to specify Data Access Layout ON COLUMNS can be used in place of AXIS(0) ON ROWS may replace AXIS(1) ON PAGES may replace AXIS(2) ON CHAPTERS may replace AXIS(3) ON SECTIONS may replace AXIS(4)
10
mailto : aloo_a2@yahoo.com for all Hyperion video tutorial/Training/Certification/Material Examples Select with Column and Row Axis SELECT {[100-10],[100-20]} ON COLUMNS, {[Qtr1],[Qtr2],[Qtr3],[Qtr4]} ON ROWS FROM Sample.Basic Specify Tuple And Sets SELECT {([100-10],[East]), ([100-20],[East])} ON COLUMNS, { ([Qtr1],[Profit]), ([Qtr2],[Profit]), ([Qtr3],[Profit]), ([Qtr4],[Profit]) } ON ROWS FROM Sample.Basic
11
mailto : aloo_a2@yahoo.com for all Hyperion video tutorial/Training/Certification/Material
12
MDX Introduction
13
mailto : aloo_a2@yahoo.com for all Hyperion video tutorial/Training/Certification/Material
16
SELECT {([100-10], [Actual])} ON COLUMNS FROM Sample.Basic
17
mailto : aloo_a2@yahoo.com for all Hyperion video tutorial/Training/Certification/Material Specify Member Range SELECT {([100-10],[East]), ([100-20],[East])} ON COLUMNS, { CrossJoin ({[Profit]},{[Qtr1],[Qtr2],[Qtr3],[Qtr4]}) } ON ROWS FROM Sample.Basic
18
mailto : aloo_a2@yahoo.com for all Hyperion video tutorial/Training/Certification/Material SELECT MemberRange([Qtr1],[Qtr4]) ON COLUMNS FROM Sample.Basic Specify Member Range SELECT [Qtr1]:[Qtr4]ON COLUMNS FROM Sample.Basic SELECT {[Year].Children} ON COLUMNS, Attribute ([Ounces_12]) ON ROWS FROM Sample.Basic Attribute Dimension
19
mailto : aloo_a2@yahoo.com for all Hyperion video tutorial/Training/Certification/Material SELECT CrossJoin ({[100-10]}, {[East],[West],[South],[Central]}) ON COLUMNS, CrossJoin ( {[Sales],[COGS],[Margin %],[Profit %]}, {[Qtr1]} ) ON ROWS FROM Sample.Basic Performing Set Operations SELECT {[Measures].[Sales], [Measures].[Profit]} ON COLUMNS, Except( [Market].Levels(0).Members, UDA (Market, "Major Market") ) ON ROWS WHERE {([Year].[Qtr1], [Scenario].[Actual])
20
mailto : aloo_a2@yahoo.com for all Hyperion video tutorial/Training/Certification/Material SELECT Members(Market.levels(0))ON COLUMNS FROM Sample.Basic Filtering Using Slice SELECT CrossJoin ({[100-10]}, {[East],[West],[South],[Central]}) ON COLUMNS, CrossJoin ( {[Sales],[COGS],[Margin %],[Profit %]}, {[Qtr1]} ) ON ROWS FROM Sample.Basic WHERE (Budget) Level/Generation Generation SELECT [Year].[Qtr1].Generation.Members ON COLUMNS, [Product].Generations(2).Members ON ROWS FROM Sample.Basic
21
mailto : aloo_a2@yahoo.com for all Hyperion video tutorial/Training/Certification/Material SELECT { Profit } ON COLUMNS, Filter( [Product].levels(0).members, Profit < 0) ON ROWS FROM Sample.Basic Filtering Data Aggregation Queries WITH MEMBER [Measures].[Max Qtr2 Sales] AS ' Max ( {[Year].[Qtr2]}, [Measures].[Sales] )' SELECT {[Measures].[Max Qtr2 Sales]} ON COLUMNS, {[Product].children} ON ROWS FROM Sample.Basic WITH SET [Best5Prods] AS 'Topcount ( [Product].members, 5, ([Measures].[Sales], [Scenario].[Actual], [Year].[Dec]) )' SELECT [Best5Prods] ON AXIS(0), {[Year].[Dec]} ON AXIS(1) FROM Sample.Basic
22
mailto : aloo_a2@yahoo.com for all Hyperion video tutorial/Training/Certification/Material SELECT Filter([Market].Members, IsChild([Market].CurrentMember,[East]) ) ON COLUMNS FROM Sample.Basic SELECT {Parent ([100- 10])} ON COLUMNS FROM sample.basic Member Functions WITH MEMBER [Scenario].[Revised Budget] AS 'IIF ( [Product].CurrentMember.Caffeinated, Budget * 1.1, Budget )' SELECT {[Scenario].[Budget], [Scenario].[Revised Budget]} ON COLUMNS, [Product].Levels(0).Members ON ROWS FROM Sample.Basic WHERE ([Measures].[Sales], [Year].[Qtr3]) Conditional Access "IFF"
23
mailto : aloo_a2@yahoo.com for all Hyperion video tutorial/Training/Certification/Material Questions
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.