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
Issue with TI Building a Dimension
-
- MVP
- Posts: 3119
- 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: I’m new to Tm1
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.
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
Code: Select all
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.
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