Hi all,
We know that By default, TM1 does not display the aliases.
Currently we are building 20 to 30 dimension which are having aliases. After creating the cube, we need to set the use aliases button in each dimension manually.
Is there any we can set use aliases on option for all dimensions.
TM1 does not display the aliases
-
- Posts: 25
- Joined: Mon Aug 24, 2009 11:13 am
- OLAP Product: TM1
- Version: 10.2
- Excel Version: 2010
TM1 does not display the aliases
Thanks & Regards
vsu
vsu
-
- MVP
- Posts: 3702
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: TM1 does not display the aliases
Have you tried the SubsetAliasSet function in TurboIntegrator? Assuming you have a default subset defined or a consistent naming convention for the subsets to assign a display alias to and a consistent naming convention for aliases then I think this would do exactly as you need.
This code snippet should do what you require.
This code snippet should do what you require.
Code: Select all
# loop through dimensions to set display alias
sDimName = '}Dimensions';
sSubName = 'Default';
sAliasName = 'Code and Description';
nCounter = 1;
nMaximum = DimSiz(sDimName);
WHILE(nCounter <= nMaximum);
sElName = DimNm(sDimName, nCounter);
IF( SubSt(sElName, 1, 1) @<> '}' & DimensionExists('}ElementAttributes_' | sElName) = 1 );
IF( SubsetExists(sElName, sSubName) = 1 & DIMIX('}ElementAttributes_' | sElName, sAliasName) > 0 );
SubsetAliasSet(sElName, sSubName, sAliasName);
EndIF;
EndIF;
nCounter = nCounter + 1;
END;