Essbase Mdx

  • Uploaded by: api-26942036
  • 0
  • 0
  • July 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Essbase Mdx as PDF for free.

More details

  • Words: 717
  • Pages: 23
Understanding MDX with BSO and ASO

mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

MDX Introduction

mailto : [email protected] 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.

mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

MDX Introduction

mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

Examples

Simple Select SELECT {Jan} ON COLUMNS FROM Sample.Basic Simple Select SELECT {([100-10], [Actual])} ON COLUMNS FROM Sample.Basic mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

ntroduction to Sets and Tuples 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]).

et is an ordered collection of one or more tuples that have the same dimensional 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)

mailto : [email protected] 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

mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

MDX Introduction

mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

SELECT {([100-10], [Actual])} ON COLUMNS FROM Sample.Basic

mailto : [email protected] 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

mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

Specify Member Range SELECT SELECT MemberRange([Qtr1],[Qtr4]) [Qtr1]:[Qtr4]ON COLUMNS ON COLUMNS FROM Sample.Basic FROM Sample.Basic Attribute Dimension SELECT {[Year].Children} ON COLUMNS, Attribute ([Ounces_12]) ON ROWS FROM Sample.Basic

mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

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]) SELECT CrossJoin ({[100-10]}, {[East],[West],[South],[Central]}) ON COLUMNS, CrossJoin ( {[Sales],[COGS],[Margin %],[Profit %]}, {[Qtr1]} ) ON ROWS FROM Sample.Basic

mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

Level/Generation Generation SELECT Members(Market.levels(0))ON COLUMNS FROM Sample.Basic

SELECT [Year]. [Qtr1].Generation.Members ON COLUMNS, [Product].Generations(2).Mem bers ON ROWS 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)

mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

Filtering Data SELECT { Profit } ON COLUMNS, Filter( [Product].levels(0).members, Profit < 0) ON ROWS FROM Sample.Basic 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

mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

Member Functions

SELECT Filter([Market].Members, IsChild([Market].CurrentMember, [East]) ) ON COLUMNS FROM Sample.Basic Conditional Access "IFF"

SELECT {Parent ([100-10])} ON COLUMNS FROM sample.basic

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])

mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

Questions

mailto : [email protected] for all Hyperion video tutorial/Training/Certification/Material

Related Documents

Essbase Mdx
July 2020 4
Essbase Intro
May 2020 13
Faq Essbase
June 2020 7
Essbase Optimization
May 2020 14
Essbase General
November 2019 24
Essbase Ppts_v4
July 2020 4