Nested MDX Statement
Posted: Wed Mar 02, 2011 10:13 pm
I'm trying to create a nested MDX statement in order to sort a subset by the cell values from two elements. Here are the individual MDX statements I created and both work great on their own. However, how do I combine these two so that the dimension is sorted by 'Auction Year' and then 'Auction Month'
{Order (
{ TM1FilterByLevel ( { ( [Location] . [Forecasted Auctions] . Children ) } , 0 ) }
, [Auction Forecast] . ( [GL Account] . [Auction Year] )
, ASC )}
{Order (
{ TM1FilterByLevel ( { ( [Location] . [Forecasted Auctions] . Children ) } , 0 ) }
, [Auction Forecast] . ( [GL Account] . [Auction Month] )
, ASC )}
Thanks
{Order (
{ TM1FilterByLevel ( { ( [Location] . [Forecasted Auctions] . Children ) } , 0 ) }
, [Auction Forecast] . ( [GL Account] . [Auction Year] )
, ASC )}
{Order (
{ TM1FilterByLevel ( { ( [Location] . [Forecasted Auctions] . Children ) } , 0 ) }
, [Auction Forecast] . ( [GL Account] . [Auction Month] )
, ASC )}
Thanks