28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Function Description<br />

TopCount Returns a specified number of items from the topmost members of a specified set,<br />

optionally ordering the set first.<br />

Union Performs a set operation that returns a union of two sets, removing duplicate<br />

members.<br />

UniqueName Returns the unique name of a specified hierarchy.<br />

WTD Returns a set of members from the Week level in a Time dimension starting with<br />

the first period and ending with a specified member.<br />

YTD Returns a set of members from the Year level in a Time dimension starting with the<br />

first period and ending with a specified member.<br />

14.3.4 MDX Extensions<br />

<strong>SAP</strong> <strong>HANA</strong> supports several extensions to the MDX language, for example, additional predefined functions and<br />

support for variables.<br />

Sibling_Ordinal Intrinsic Property<br />

The object Member includes a property called Sibling_Ordinal, that is equal to the 0-based position of the<br />

member within its siblings.<br />

WITH<br />

MEMBER [Measures].[Termination Rate] AS<br />

[Measures].[NET_SALES] / [Measures].[BILLED_QUANTITY]<br />

SELECT<br />

{<br />

[Measures].[NET_SALES],<br />

[Measures].[BILLED_QUANTITY],<br />

[Measures].[Termination Rate]<br />

} ON COLUMNS,<br />

Descendants<br />

(<br />

[MDX_TEST_10_DISTRIBUTION_CHANNEL].<br />

[MDX_TEST_10_DISTRIBUTION_CHANNEL].[All].[(all)],<br />

1,<br />

SELF_AND_BEFORE<br />

)<br />

DIMENSION PROPERTIES SIBLING_ORDINAL ON ROWS<br />

FROM MDX_TEST_10_ITELO_SALES_DATA<br />

MembersAscendantsDescendants Function<br />

<strong>SAP</strong> <strong>HANA</strong> includes a new function called MembersAscendantsDescendants that enables you to get, for<br />

example, all ascendants and descendants of a specific member. This function improves on the standard MDX<br />

functions Ascendants and Descendants.<br />

The function can be called as follows:<br />

MembersAscendantsDescendants (, )<br />

● set: A set of members from a single hierarchy<br />

● flag: Indicates which related members to return, and can be one of the following:<br />

370<br />

○ MEMBERS_AND_ASCENDANTS_AND_DESCENDANTS<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved.<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Using Database Client Interfaces

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!