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 />

PrevMember Returns the previous member in the level that contains a specified member.<br />

Properties Returns a string containing the value of the specified member property.<br />

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

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

Range Performs a set operation that returns a naturally ordered set, with the two<br />

specified members as endpoints, and all members between the two specified<br />

members included as members of the set<br />

Right The Right function returns a string of a specified number of characters from the<br />

right side (end) of a specified string.<br />

Siblings Returns the set of siblings of a specified member, including the member itself.<br />

StrToMember Returns a member from a string expression in MDX format.<br />

StrToSet Constructs a set from a specified string expression in MDX format.<br />

StrToTuple Constructs a tuple from a specified string expression in MDX format.<br />

StrToValue Returns a value from a string expression<br />

Subset Returns a subset of tuples from a specified set.<br />

Sum Returns the sum of a numeric expression evaluated over a specified set.<br />

Tail Returns the last specified number of elements in a set.<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 />

8.2.6 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 />

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

Defining Web-based Data Access<br />

P U B L I C<br />

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

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

Saved successfully!

Ooh no, something went wrong!