TI Process to load all children
-
- Posts: 38
- Joined: Mon Dec 20, 2010 5:02 am
- OLAP Product: Cognos TM1
- Version: 9.4 and 9.5
- Excel Version: 2003 and 2007
TI Process to load all children
Hi,
I am trying to create a TI Process to load all children of consolidated source data.
Requirement:
My source data is at Consolidated level and i need to load the same data in cube at all children's of specified consolidated Level.
Ex: Source data:
Product Revenue
1001 1000
Product can have two (or) more children and load the revenue(1000) data against those childrens of product(1001)
Need suggestions on this.
Regards,
Sathish
I am trying to create a TI Process to load all children of consolidated source data.
Requirement:
My source data is at Consolidated level and i need to load the same data in cube at all children's of specified consolidated Level.
Ex: Source data:
Product Revenue
1001 1000
Product can have two (or) more children and load the revenue(1000) data against those childrens of product(1001)
Need suggestions on this.
Regards,
Sathish
- jim wood
- Site Admin
- Posts: 3961
- Joined: Wed May 14, 2008 1:51 pm
- OLAP Product: TM1
- Version: PA 2.0.7
- Excel Version: Office 365
- Location: 37 East 18th Street New York
- Contact:
Re: TI Process to load all children
Have you looked through the refernce guide for commands that might help you before asking? I'll give you a clue: ELCOMPN, ELCOMP,
Jim.
Jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
-
- Posts: 38
- Joined: Mon Dec 20, 2010 5:02 am
- OLAP Product: Cognos TM1
- Version: 9.4 and 9.5
- Excel Version: 2003 and 2007
Re: TI Process to load all children
Hi Jim,
Thanks for reply..
Yes, We are trying with ELCOMPN, ELCOMP functions only, the concern is,one product can have multiple children.
So we are trying to get the number of children of specified product and trying to loop those my times.
But we are unable to achieve the same as all these should be dynamic and run time in TI process load.
Regards,
Sathish
Thanks for reply..
Yes, We are trying with ELCOMPN, ELCOMP functions only, the concern is,one product can have multiple children.
So we are trying to get the number of children of specified product and trying to loop those my times.
But we are unable to achieve the same as all these should be dynamic and run time in TI process load.
Regards,
Sathish
- jim wood
- Site Admin
- Posts: 3961
- Joined: Wed May 14, 2008 1:51 pm
- OLAP Product: TM1
- Version: PA 2.0.7
- Excel Version: Office 365
- Location: 37 East 18th Street New York
- Contact:
Re: TI Process to load all children
ELCOMPN tells you the number of children. Use a while loop constrained by that number. Use a subset as the datasource containing each product so the while loop applies to every child. Your only concern is if a child has multiple parents.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
-
- Posts: 38
- Joined: Mon Dec 20, 2010 5:02 am
- OLAP Product: Cognos TM1
- Version: 9.4 and 9.5
- Excel Version: 2003 and 2007
Re: TI Process to load all children
Hi Jim,
Can you please shed light on the below..as my datasource is CSV File.
Use a subset as the datasource containing each product so the while loop applies to every child.
Regards,
Sathish
Can you please shed light on the below..as my datasource is CSV File.
Use a subset as the datasource containing each product so the while loop applies to every child.
Regards,
Sathish
-
- 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: TI Process to load all children
You do not need a subset as the datasource.
Within the Advanced > Data tab of you process, make a loop over all (ELCOMPN) children (ELCOMP) or a given consolidated member.
Write the data (CELLPUTN) on each of those children, if they are level 0 in the dimension.
Within the Advanced > Data tab of you process, make a loop over all (ELCOMPN) children (ELCOMP) or a given consolidated member.
Write the data (CELLPUTN) on each of those children, if they are level 0 in the dimension.
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
- jim wood
- Site Admin
- Posts: 3961
- Joined: Wed May 14, 2008 1:51 pm
- OLAP Product: TM1
- Version: PA 2.0.7
- Excel Version: Office 365
- Location: 37 East 18th Street New York
- Contact:
Re: TI Process to load all children
I put that in there as I didn't know what your data was, other than being at the consolidated level.sathishh.mk wrote:Can you please shed light on the below..as my datasource is CSV File.
Use a subset as the datasource containing each product so the while loop applies to every child.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
-
- 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: TI Process to load all children
Code: Select all
nComp = ElCompN ( sDimProduct, vProduct );
nRev = vRevenue \ nComp;
iCount = 1;
iMax = nComp;
While ( iCount <= iMax );
sProductChild = ElComp ( sDimProduct, vProduct, iCount );
CellPutN ( nRev, sCub, v1, v2...., sProductChild, 'revenue' );
iCount = iCount + 1 ;
End;
The code may have issues as I've written this on my phone.
Declan Rodger
-
- Posts: 38
- Joined: Mon Dec 20, 2010 5:02 am
- OLAP Product: Cognos TM1
- Version: 9.4 and 9.5
- Excel Version: 2003 and 2007
Re: TI Process to load all children
Thanks declanr and Jim !!!
The below code working fine and exactly fitted for my requirement.
Really really thanks for help.
Regards,
Sathish
The below code working fine and exactly fitted for my requirement.
Really really thanks for help.
Regards,
Sathish