Hi,
I have 2 dimensions: DimA and DimB,
one attribute of DimB, DimB_Attr has values of elements in DimA.
Is it possible to create a dynamic subset which takes elements of DimA informed in DimB_Attr?
Something like
{ FILTER( { TM1FILTERBYLEVEL( { TM1SUBSETALL( [ DimA] ) }, 0 ) },
[ DimB].[DimB_Attr] = [DimA].CurrentMember
)}
regards
MDX to attributes
-
- MVP
- Posts: 2836
- Joined: Tue Feb 16, 2010 2:39 pm
- OLAP Product: TM1, Palo
- Version: Beginning of time thru 10.2
- Excel Version: 2003-2007-2010-2013
- Location: Atlanta, GA
- Contact:
Re: MDX to attributes
Are you saying you tried that and it didn't work, or have you not bothered to try it yet?
-
- Posts: 74
- Joined: Thu Jun 17, 2010 10:35 am
- OLAP Product: TM1
- Version: 9.4 9.5.1
- Excel Version: 2003 - 2007
Re: MDX to attributes
I tried it and it doesnt work,
I tried also somethings like:
{ FILTER( { TM1FILTERBYLEVEL( { TM1SUBSETALL( [ DimA ] ) }, 0 ) },
[ }ElementAttributes_DimB].( [ DimB].AllMembers
, [}ElementAttributes_DimB].[ DimB_Attr ]) = [ DimA ].CurrentMember
)}
I tried to replace AllMembers by Members, CurrentMember, Item(x)...
In some case the syntaxe is not correct, in others I got all level 0 elements without filter, in some others nothing.
I tried also somethings like:
{ FILTER( { TM1FILTERBYLEVEL( { TM1SUBSETALL( [ DimA ] ) }, 0 ) },
[ }ElementAttributes_DimB].( [ DimB].AllMembers
, [}ElementAttributes_DimB].[ DimB_Attr ]) = [ DimA ].CurrentMember
)}
I tried to replace AllMembers by Members, CurrentMember, Item(x)...
In some case the syntaxe is not correct, in others I got all level 0 elements without filter, in some others nothing.