Hi,
We have a big dimension with many elements and many aliases defined for each element.
How can we determine if an alias is already used as alias for different element ? is there a TM1 Api to search element alias ?
by the way, an alias needs to be unique in a dimension level i presume or in entire TM1 model ?
Thanks a lot in advance !
How to search an alias name in the big dimension if alreay s
-
- MVP
- Posts: 1831
- Joined: Mon Dec 05, 2011 11:51 am
- OLAP Product: Cognos TM1
- Version: PA2.0 and most of the old ones
- Excel Version: All of em
- Location: Manchester, United Kingdom
- Contact:
Re: How to search an alias name in the big dimension if alre
You can use the DIMIX function to do a simple check to see if that name already exists in the dimension but that will just tell you whether it exists be it as an alias or principal name.
If you want to ONLY check if it exists as an alias but not principal name you could always use the DIMIX function and then use either the DimensionElementPrincipalName on the (possible) alias name or a DIMNM on the dimension index and see if it results in the same as the (possible) alias name, if so it is a Principal Element name, if not it is an alias.
If you want to ONLY check if it exists as an alias but not principal name you could always use the DIMIX function and then use either the DimensionElementPrincipalName on the (possible) alias name or a DIMNM on the dimension index and see if it results in the same as the (possible) alias name, if so it is a Principal Element name, if not it is an alias.
An alias needs to be unique within a Dimension (not the same as other element aliases or principal names) but you can use the same element name within 2 separate dimensions, you just need to be careful when writing rules etc and use full DB refs instead of square brackets refs as to avoid ambiguous element names confusing the scenario.tm1novice wrote: by the way, an alias needs to be unique in a dimension level i presume or in entire TM1 model ?
Declan Rodger
-
- MVP
- Posts: 2836
- Joined: Tue Feb 16, 2010 2:39 pm
- OLAP Product: TM1, Palo
- Version: Beginning of time thru 10.2
- Excel Version: 2003-2007-2010-2013
- Location: Atlanta, GA
- Contact:
Re: How to search an alias name in the big dimension if alre
That's not necessary. It's only a problem when your rule references specific elements that are not unique and for those you can simply append the dimension name to the element name and join them with a colon, and still use the shortcut method.declanr wrote:you just need to be careful when writing rules etc and use full DB refs instead of square brackets refs as to avoid ambiguous element names confusing the scenario.
-
- Posts: 29
- Joined: Fri Nov 23, 2012 6:25 am
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2003
Re: How to search an alias name in the big dimension if alre
Declan , tomok ,
Thanks a lot. That's very helpful !
tm1novice
Thanks a lot. That's very helpful !
tm1novice