Hi,
I have a dimension which needs to be updated with the Leaf level values, which are to be retrieved from a load file. These leaf level values are basically coming from a different table and accessed in TI process to update the existing dimension. To arrange under the parent values, I have created a string attribute with the 2 postions of the leaf level and matching with the elements coming from load file. Can I consider only one TI process in accessing the load file values and also the putting under the parent elements. Any ideas??
Updating the Dimension issue
-
- Posts: 44
- Joined: Thu May 01, 2014 12:46 pm
- OLAP Product: Cognos TM1
- Version: 10.2
- Excel Version: 2010
-
- MVP
- Posts: 3706
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Updating the Dimension issue
Yes. 1st idea; try to express your question in a way that someone else has some chance of comprehending what it is you are asking. Then you might have some chance at least.krithika331 wrote:... Can I consider only one TI process in accessing the load file values and also the putting under the parent elements. Any ideas??
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
-
- MVP
- Posts: 3241
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: Updating the Dimension issue
No. See Lotsa's post. I cannot suggest anything when I read your post. Even not after reading it 5 times.krithika331 wrote:Any ideas??
Best regards,
Wim Gielis
IBM Champion 2024-2025
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-2025
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
-
- MVP
- Posts: 733
- Joined: Wed May 14, 2008 11:06 pm
Re: Updating the Dimension issue
Are you saying that you have 1 table for the parents and 1 table for the leaves and currently have 2 TI processes to 1. load parents and then 2. attach leaves to parents based on the attribute? If so, then if you are using an ODBC data source then you could look at using a JOIN statement to combine the two tables so that the parent, child and implied relationship is all combined into one new view. Then have a single TI process read that information and you will then be able to insert parents, children and add the children to parents in a single process.krithika331 wrote:Hi,
I have a dimension which needs to be updated with the Leaf level values, which are to be retrieved from a load file. These leaf level values are basically coming from a different table and accessed in TI process to update the existing dimension. To arrange under the parent values, I have created a string attribute with the 2 postions of the leaf level and matching with the elements coming from load file. Can I consider only one TI process in accessing the load file values and also the putting under the parent elements. Any ideas??
Robin Mackenzie
-
- Posts: 44
- Joined: Thu May 01, 2014 12:46 pm
- OLAP Product: Cognos TM1
- Version: 10.2
- Excel Version: 2010
Re: Updating the Dimension issue
Sorry for the confusion. What I meant actually was that the standard dimension is already present and while loading the data for some measures in the Cube, the Data load file is coming from a different database and to avoid the Loading error for some elements, in metadata I had written the code to update the dimension elements and then load. But I don't want to do this way, instead update the dimension initially with the elements present in different database, (extracted leaf values to file) and update the dimension and then run the Cube Load process.
So to exactly put the leaf values(coming from file) under the existing parents , I have to consider the string attribute with 2 positions of the leaf values assigning to the parent elements and matching with the elements coming from load file. Can anyone please tell me.
So to exactly put the leaf values(coming from file) under the existing parents , I have to consider the string attribute with 2 positions of the leaf values assigning to the parent elements and matching with the elements coming from load file. Can anyone please tell me.
-
- MVP
- Posts: 3706
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Updating the Dimension issue
What would be helpful is if you were to give an example of the format of the file you are using and to indicate whether it is possible to include a field (or deduce) the parent of any new element included in the load file.krithika331 wrote:Sorry for the confusion. What I meant actually was that the standard dimension is already present and while loading the data for some measures in the Cube, the Data load file is coming from a different database and to avoid the Loading error for some elements, in metadata I had written the code to update the dimension elements and then load. But I don't want to do this way, instead update the dimension initially with the elements present in different database, (extracted leaf values to file) and update the dimension and then run the Cube Load process.
So to exactly put the leaf values(coming from file) under the existing parents , I have to consider the string attribute with 2 positions of the leaf values assigning to the parent elements and matching with the elements coming from load file. Can anyone please tell me.
If using 10.1 or 10.2 then you don't need to use the metadata tab to insert elements that need to be added and avoid errors as the direct functions can be used on the data tab before the CellPut.
Code: Select all
IF( DimIx( cDim, vEle ) = 0 );
DimensionElementInsertDirect( cDim, '', vEle, 'N' );
DimensionElementComponentAddDirect( cDim, vPar, vEle, 1 );
EndIF;
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
-
- Regular Participant
- Posts: 424
- Joined: Sat Mar 10, 2012 1:03 pm
- OLAP Product: IBM TM1, Planning Analytics, P
- Version: PAW 2.0.8
- Excel Version: 2019
Re: Updating the Dimension issue
Thanks lotsaram ,So it is fair to conclude that we still have to use metadata tab for inserting elements and direct element functions can't be used in data tab.Thanks
"You Never Fail Until You Stop Trying......"
-
- 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: Updating the Dimension issue
Think you've got a little mixed up there, what Lotsa was saying is that you CAN use the direct functions on the data tab, that's the whole point in them having been introduced (as long as you are using a version 10+.)BariAbdul wrote:Thanks lotsaram ,So it is fair to conclude that we still have to use metadata tab for inserting elements and direct element functions can't be used in data tab.Thanks
Declan Rodger