I want to create an MDX driven report containing all parents of a set of n-level elements that are filtered by attributes.
Code: Select all
HIERARCHIZE(FILTER ( GENERATE(Filter( TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[DIM].[PARENT]}, ALL, RECURSIVE )}, 0), [DIM].[ATTRIBUTE] = "XXXX"),[DIM].CurrentMember.Ancestors ),[DIM].Currentmember.Level.ordinal =1))
Any suggestions are welcome.
Note: This is the first time I have posted so I hope I have done it correctly.
Thanks!