String Functions

The MDX functions that are listed here indicate their return type.
CoalesceEmpty
coalesces an empty cell value to a number or string and returns the coalesced value. CoalesceEmpty(<String Expression>[,<String Expression>]...)
Generate
returns a concatenated string that is created by evaluating a string expression over a set. Generate(<Set>,<String Expression>[,Delimiter>])
IIf
returns one of two numeric or string values that are determined by a logical test. IIf(<Logical Expression>,<String Expression1>, <String Expression2>)
Note: If a numeric value is returned, then it is a numeric function, not a string function.
MemberToStr
returns a string in Multidimensional Expressions (MDX) format from a member. MemberToStr(<Member>)
Name
returns the name of a level, dimension, member, or hierarchy. <Level>.Name<Dimension>.Name<Member>.Name<Hierarchy>.Name
Properties
returns a string that contains a member property value. <Member>.Properties(Caption)<Member>.Properties(Name)<Member>.Properties(UniqueName)<Member>.Properties(<String Expression>,<TRUE | FALSE>)
Note: The raw data associated with the property can be either numeric or character, depending on the property type. If the parameter is set to TRUE, then the function returns the raw value for the property instead of the formatted value. If the parameter is set to FALSE, then the function returns the formatted string property. The default value is FALSE.
Put
returns a string that contains the formatted output based on a SAS format.Put(<Numeric Expression>,<String Expression>)Put(<String Expression>,<String Expression>)
SetToStr
constructs a string in Multidimensional Expressions (MDX) format from a set. SetToStr(<Set>)
TupleToStr
returns a string in Multidimensional Expressions (MDX) format from a specified tuple. TupleToStr(<Tuple>)
UniqueName
returns the unique name of a specified level, dimension, member, or hierarchy. <Level>.UniqueName<Dimension>.UniqueName<Member>.UniqueName<Hierarchy>.UniqueName
UserName
returns the domain name and user name of the current connection. UserName
<member>.member_caption
returns the caption of the member. It is in non-standard MDX format.
<dimension>.caption
returns the caption of the member. It is in non-standard MDX format.
<hierarchy>.caption
returns the caption of the member. It is in non-standard MDX format.
<level>.caption
returns the caption of the member. It is in non-standard MDX format.
<member>.caption
returns the caption of the member. It is in non-standard MDX format.