I managed to get this MDX to do what I want (for use in a PAfE report), which is filtering on the period number, then generating the parents and sorting by hierarchy.
It seems a bit odd to generate all Ascendants then, filter some of them out again.
I have tried using Parent/Ancestor/Ancestors but cannot get any of them to work in this way.
Could anyone help with the syntax for using them?
Thanks
Keith
Code: Select all
{HIERARCHIZE(
TM1FILTERBYLEVEL(
GENERATE(
FILTER(
{TM1SUBSETALL ( [Year historic data] ) },
([Year historic data].[Period number])>
84
)
,ASCENDANTS([Year historic data].CurrentMember)
),0,1
)
)}