Tm1 Alias
-
- Posts: 17
- Joined: Tue Oct 29, 2019 3:50 am
- OLAP Product: IBM Cognos
- Version: 10.2.2
- Excel Version: 1808
Tm1 Alias
How to get an alias name by derving the element name in TM1 turbo integrator process. can some one please help on this
-
- Community Contributor
- Posts: 287
- Joined: Fri Feb 15, 2013 5:49 pm
- OLAP Product: TM1
- Version: PA 2.0.9.1
- Excel Version: 365
- Location: Minneapolis, USA
Re: Tm1 Alias
Aliases are string attributes, you can use ATTRS to return the attribute value of an element.
https://www.ibm.com/support/knowledgece ... attrs.html
https://www.ibm.com/support/knowledgece ... attrs.html
-
- Posts: 17
- Joined: Tue Oct 29, 2019 3:50 am
- OLAP Product: IBM Cognos
- Version: 10.2.2
- Excel Version: 1808
Re: Tm1 Alias
Thank you soo much
-
- Posts: 12
- Joined: Tue Oct 02, 2018 5:35 am
- OLAP Product: PAL
- Version: PAL 2.0.4
- Excel Version: excel 2010
- Contact:
Re: Tm1 Alias
##Reminder
When the alias is the same as the principle element name
You can go to the attribute viewer and the alias column will display the same name as the principle element.
But when you open attribute Cube today, you will find that the cell is blank.
So when you use "ATTRS" and "CELLGET", only the blank is taken.
Remember to add more judgments and take the element name from principle element name.
Example:
https://github.com/howard40116/Rebellio ... 20note.txt
When the alias is the same as the principle element name
You can go to the attribute viewer and the alias column will display the same name as the principle element.
But when you open attribute Cube today, you will find that the cell is blank.
So when you use "ATTRS" and "CELLGET", only the blank is taken.
Remember to add more judgments and take the element name from principle element name.
Example:
Code: Select all
sAlias=ATTRS(sDim,vEle,'Alias');
IF(sAlias@='');
sAlias=vEle;
ENDIF;
https://github.com/howard40116/Rebellio ... 20note.txt
-
- MVP
- Posts: 3116
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.0.9.18
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: Tm1 Alias
Or create a generic process that runs once in a while to loop over all dimensions. See whether there are are alias. Populate the empty cells in the }ElementAttributes cube with the element name.howard40116 wrote: ↑Fri Nov 01, 2019 1:25 amRemember to add more judgments and take the element name from principle element name.
Additional functionality:
- give a cube name and the process only goes through the dimensions of that cube
- treat all hierarchies of the dimensions
- use wildcards in the dimension to treat all dimensions starting with Rpt_* for example
A new Bedrock process might be born
Best regards,
Wim Gielis
IBM Champion 2024
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
-
- MVP
- Posts: 3654
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Tm1 Alias
Actually I think there might be one already! We already have one in the "consultant toolkit" that basically does exactly this; find blank cells for alias attributes (and Caption regardless whether defined as String or Alias) and populate with principal name.
Ensures that CellGetS and DB return the same value as AttrS.
Of course it's not a bedrock process but it might as well be. There's hardly anything too special about what it is doing.
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
-
- MVP
- Posts: 3116
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.0.9.18
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: Tm1 Alias
I am not aware of the "consultant toolkit" is, I have mine though, in which I have such a process.
Best regards,
Wim Gielis
IBM Champion 2024
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
-
- Posts: 12
- Joined: Tue Oct 02, 2018 5:35 am
- OLAP Product: PAL
- Version: PAL 2.0.4
- Excel Version: excel 2010
- Contact:
Re: Tm1 Alias
Maybe Bedrock4 can add this ti for public ,and then we just need setting chore by daily in this bedrocklotsaram wrote: ↑Fri Nov 01, 2019 1:48 pmActually I think there might be one already! We already have one in the "consultant toolkit" that basically does exactly this; find blank cells for alias attributes (and Caption regardless whether defined as String or Alias) and populate with principal name.
Ensures that CellGetS and DB return the same value as AttrS.
Of course it's not a bedrock process but it might as well be. There's hardly anything too special about what it is doing.