RIGHT(String, Length)

Input Parameters

String (Required)
String expression from which the rightmost characters are returned. If string is NULL, NULL is returned.
Length (Required)
A numeric expression indicating the number of characters to return. If 0, a zero-length string ("") is returned. If greater than or equal to the number of characters in string, the entire string is returned.

Return Value

Returns a String containing a specified number of characters from the right side of a string.


Return the right 4 characters from the member's name.

RIGHT([Order Date Dimension].[Order Retail445].currentMember.NAME, 4)