Thank you so much. However I can't quite get it to run, I got a syntax error (token is not valid, apparently because of the "All Age" member, any idea on how to get around it?) when using the StrToValue function in the Filter statement
select
{[Measures].[Id]} on columns,
{Filter([age].Members, StrToValue([age].CurrentMember.Name) < 12)} on row
from tes
However I changed StrToValue to VBA!Value and it works like a charm
select
{[Measures].[Id]} on columns,
{Filter([age].Members, VBA!Val([age].CurrentMember.Name) < 12)} on row
from tes
I was under the impression that VBA!Val and StrToValue are equivalent
----- Deepak Puri wrote: ----
If you can construct the MDX from user input, then like
StrToValue(Age.CurrentMember.Name) <= 12
- Deepa
*** Sent via Developersdex http://www.developersdex.com **
Don't just participate in USENET...get rewarded for it