Subset: Sort by Element Name, Display Alias
Posted: Wed Mar 02, 2016 4:15 pm
I am trying to get my head around this (I'm still relatively new to TM1)..
My dimension is named GLT_Account, the subset is named All_Accounts. This subset contains the consolidation 'All_Accounts' and all of its N level elements.
For example
Premium Written Direct(10000)
Gross Premiums Written by 3rd Parties (10005)
Bad Debt Expense Premiums(10025)
I've built and MDX as below, which sorts the accounts by element name (10025 etc). However, I need to display the alias for users by default.
I've tried executing this after saving the MDX. However, the result is the accounts sorted by alias.
Have i approached this completely the wrong way ?
My dimension is named GLT_Account, the subset is named All_Accounts. This subset contains the consolidation 'All_Accounts' and all of its N level elements.
For example
Premium Written Direct(10000)
Gross Premiums Written by 3rd Parties (10005)
Bad Debt Expense Premiums(10025)
I've built and MDX as below, which sorts the accounts by element name (10025 etc). However, I need to display the alias for users by default.
Code: Select all
{Union ({TM1FILTERBYPATTERN( {TM1SUBSETALL( [GLT_Account] )}, "All_Accounts")},
{TM1SORT( { EXCEPT( {TM1DRILLDOWNMEMBER( {TM1FILTERBYPATTERN( {TM1SUBSETALL( [GLT_Account] )}, "All_Accounts")}, ALL, RECURSIVE )}, { [GLT_Account].[All_Accounts] }) }, ASC)})}
Code: Select all
SubsetAliasSet ( 'GLT_Account' , 'All_Accounts', 'Description' ) ;
Have i approached this completely the wrong way ?