Returns: A string.
The following example uses the function to retrieve the sales amount for product departments with a name that ends with the word "JEANS."
SELECT {[Price Analysis].[Measures].[Sales Amount]} ON AXIS(0)
, {Filter([Price Analysis].[Product].[All Products].Children,
Right([Price Analysis].[Product].CurrentMember.Name, 5) = "JEANS")} ON AXIS(1)
FROM [Price Analysis]
| Product | Sales Amount |
|---|---|
| TEEN BOYS JEANS | 46876.68 |
| TEEN GIRLS JEANS | 52952.56 |
You can use the Left function to get a substring from the beginning of a string.