I have seen some questions about MDX escape character, but they focus on a query that has a value specified. I have a dynamic mdx, with values that will be specified by the user. This is the MDX:
SELECT
NON EMPTY {Hierarchize({[Measures].[INDICADOR]})} ON COLUMNS,
NON EMPTY {Hierarchize({[NOW].[NOW].Members})} ON ROWS
FROM [UNION_NOW]
WHERE CrossJoin({[PARENT].[${parentParameter}]}
the wild card is based on my selector:
SELECT
NON EMPTY {Hierarchize({[NOW].[NOW].Members})} ON COLUMNS,
NON EMPTY {Hierarchize({[PARENT].[PARENT].Members})} ON ROWS
FROM [UNION_NOW]
How do I apply the "escape value" in this case?
The best way to solve will be to use the PRE/POST execution events of selection component depending upon which CDE components are you using.
For similar situation
You can also use the post execution of select component to generate a dynamic where clause and set it in a parameter, and then use the parameter in your MDX/SQL query
Hope it helps.