Page 1 of 1

Issue with TI Building a Dimension

Posted: Thu Jul 12, 2018 6:20 pm
by poi
Hi Wim ,

I have a issue plz help me,

I have a dimension in this dimension haveing n level elements , now I’m going to create a new dimension using existing dimension using Ti proses , I written a code for this but can’t create please correct me on code .
v1='subset'
dimension='v1'
cnt=dimsiz(dimension);
x=cnt;
while(x>=1)
elementname=dimnm(vdimension,x);
If( dtype(Vdimension, elementname)@=‘n’);
if(dimensionexistsVdimension)=1)
dimensiondestroy(Vdimension);
end if ;
deimensioncreate(Vdimension);
demensionelementinsert(vdimension,elementname);
x=x-1;
end;

Thanks
Wim

Re: I’m new to Tm1

Posted: Thu Jul 12, 2018 6:41 pm
by Wim Gielis
Poi,

1) Please create a new topic
2) Please post your actual, real code, which does not suffer from typo's, missing brackets, ... The code should save fine in a process. Show us what is in your variables dimension, Vdimension, and so on.
3) Format your code in tags
4) Please explain in words that we can all understand, what you want to achieve. If you can explain it better by making a picture, you can do that.

If any of the above conditions is not met, no one will bother trying to formulate an answer.

Thank you for your understanding.