Page 1 of 1

DTYPE for hierarchies?

Posted: Mon Dec 14, 2020 5:49 pm
by kunbela
Hi TM1 Community,

Am I the only one who miss DTYPE function for hierarchies? I found no article or APAR or anything about it.

I tried to use it in a process, but it didn't work no matter, if I tried with DTYPE(Dim:Hier, Element) or DTYPE(Dim,Hier:Element). (Syntax error).
The only weapon I left, that I check the ElementIndex in Leaves hierarchy, and if 0, than the element must be C.
But I don't know, how could I check for an attribute if it is an Alias or not, for an attribte exists only in a specific (but not the main) hierarchy.

Do I miss something? Does anyone have a better idea?

Thank you for your insight or suggestions in advance.


(PS: TM1 Build Number: 11.8.00200.24)

Re: DTYPE for hierarchies?

Posted: Mon Dec 14, 2020 6:38 pm
by Wim Gielis

Re: DTYPE for hierarchies?

Posted: Mon Dec 14, 2020 9:01 pm
by kunbela
Hi Wim!

Thank you for your answer. It made me feel soooo dumb.
I have no idea why I missed this. Maybe I should work less and sleep more :D

Thanks again!

Re: DTYPE for hierarchies?

Posted: Mon Dec 14, 2020 10:10 pm
by lotsaram
this will also work
DType( 'dim:hier', sElement)
or in terms of varialbled you might have
DType( sDim |':'| sHier, sElement )

Note the single quotes around the dimension name : hierarchy name. ALL the new hierarchy functions are nothing more than routing shortcuts to the existing functions passing the dimension and hieraarchy joined by a colon.