Easiest way I could think of was to do an UNION ALL with the same MDX query. So I wrote the following MDX:
Code: Select all
UNION(
{TM1FILTERBYLEVEL( {TM1SUBSETALL( [Transaction ID] )}, 0)},
{TM1FILTERBYLEVEL( {TM1SUBSETALL( [Transaction ID] )}, 0)},ALL
)
For ex. IF MDX result is A,B,C then the above query returns: A,B,C,A,B,C whereas I want it to be A,A,B,B,C,C.
Didn't see any SORT feature for UNION in Microsoft website. Tried TM1SORT but got a Syntax error. Any suggestions?