hi all,
i have a question about TM1 mdx.
i have a dimension A and want to create a dynamic subset on dimension B where B's name starts with A. Is this possible in TM1?
I am getting some error with TM1FILTERBYPATTERN if I try to use anything besides a hard-coded string pattern like "*--*"... there's a STRTOMEMBER function but no membertoStr function...
does anyone know how to do this with TM1FILTERBYPATTERN? or maybe another way to do this?
thanks in advance!
Help with MDX TM1FILTERBYPATTERN
- Steve Rowe
- Site Admin
- Posts: 2455
- Joined: Wed May 14, 2008 4:25 pm
- OLAP Product: TM1
- Version: TM1 v6,v7,v8,v9,v10,v11+PAW
- Excel Version: Nearly all of them
Re: Help with MDX TM1FILTERBYPATTERN
Hi hlw, I suggest that you post the MDX code that is generating the error message, it's kinda hard to debug a piece of script if you can't see the script!
Cheers!

Cheers!
Technical Director
www.infocat.co.uk
www.infocat.co.uk
Re: Help with MDX TM1FILTERBYPATTERN
here's the subset code for dimension B
{TM1FILTERBYPATTERN(
{TM1FILTERBYLEVEL( {TM1SUBSETALL( )}, 1)},
"*=>*"
)}
The above will work, but I really want to use A as the beginning of the pattern.
something like this:
{TM1FILTERBYPATTERN(
{TM1FILTERBYLEVEL( {TM1SUBSETALL( )}, 1)},
[CUBEX].([A].CURRENTMEMBER)) + "=>*"
)}
I am new to mdx, so may not know what I want to do can be done... i was thinking that some type of MemberToStr can get it working... but seems like TM1 doesn't have that function.
tks!
{TM1FILTERBYPATTERN(
{TM1FILTERBYLEVEL( {TM1SUBSETALL( )}, 1)},
"*=>*"
)}
The above will work, but I really want to use A as the beginning of the pattern.
something like this:
{TM1FILTERBYPATTERN(
{TM1FILTERBYLEVEL( {TM1SUBSETALL( )}, 1)},
[CUBEX].([A].CURRENTMEMBER)) + "=>*"
)}
I am new to mdx, so may not know what I want to do can be done... i was thinking that some type of MemberToStr can get it working... but seems like TM1 doesn't have that function.
tks!