How to search an alias name in the big dimension if alreay s

Post Reply
tm1novice
Posts: 29
Joined: Fri Nov 23, 2012 6:25 am
OLAP Product: TM1
Version: 10.1
Excel Version: 2003

How to search an alias name in the big dimension if alreay s

Post by tm1novice »

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 !
declanr
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

Post by declanr »

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.
tm1novice wrote: by the way, an alias needs to be unique in a dimension level i presume or in entire TM1 model ?
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.
Declan Rodger
tomok
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

Post by tomok »

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.
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.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
tm1novice
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

Post by tm1novice »

Declan , tomok ,

Thanks a lot. That's very helpful !
tm1novice
Post Reply