Combining two cubes with 1 to many relationship

Post Reply
yogin
Posts: 7
Joined: Tue Feb 10, 2015 5:31 pm
OLAP Product: Tm1
Version: 10.2
Excel Version: 2010

Combining two cubes with 1 to many relationship

Post by yogin »

Hi All,

i am using tm1 10.2

I need to combine data from two cubes and load it into a third cube. but the two cubes have a one to many relationship.

any help is highly appreciated.

Thanks,
Yogi
Alan Kirk
Site Admin
Posts: 6647
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Combining two cubes with 1 to many relationship

Post by Alan Kirk »

yogin wrote: i am using tm1 10.2

I need to combine data from two cubes and load it into a third cube. but the two cubes have a one to many relationship.

any help is highly appreciated.
I think that you would need to be a lot more specific than that. You haven't indicated whether you want to do this through Ti or through rules, or what the relationship is between the data in the first two cubes and the third one. You haven't given an outline of the cube structures and their dimensions, nor what the level of granularity (dimensionality) is in the three cubes.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
yogin
Posts: 7
Joined: Tue Feb 10, 2015 5:31 pm
OLAP Product: Tm1
Version: 10.2
Excel Version: 2010

Re: Combining two cubes with 1 to many relationship

Post by yogin »

More info below

Cube 1:
Dimensions:
- Project name
-Project type
- Status
Measures:
Project-golive date
Project profilename
Project profile shirtsize

Cube2:
Dimensions:
Project profilename
Project profile shirtsize
Serverclass
Measures:
No of servers needed

Cube3:
Dimensions:
Project name
-Project type
Project-golive date
Project profilename
Project profile shirtsize
Serverclass
No of servers needed

For a project in cube 1 users can pick one project profile and shirtsize. Each project profileand shirt size in cube 2 can have multiple rows one for each server class.
For eg if Project A in cube 1 has a project profile that has 2 rows in cube 2 , i would need to load 2 rows in cube 3.

I am trying to write a TI process .

Appreciate your help
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Combining two cubes with 1 to many relationship

Post by tomok »

This is not going to be a straightforward task in TM1. If this was SQL you could do this quite easily with UPDATE..SET..WHERE logic. Unfortunately, this does not exist in TM1. You have to update every single cell individually using a CellPutN command. What you are going to have to do is have TWO processes. In the first process you will have a view of cube 1 consisting of all the projects you want to process. For each project you process, you will need to create a view on cube 2 that filters to only the project and server classes you want, then shell out to the second process, which has that newly configured view as it's data source, and write to all applicable server classes.

FYI, you're not going to be able to do this with the TI wizard. You'll have to do it manually.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
yogin
Posts: 7
Joined: Tue Feb 10, 2015 5:31 pm
OLAP Product: Tm1
Version: 10.2
Excel Version: 2010

Re: Combining two cubes with 1 to many relationship

Post by yogin »

Thanks Tom !

i am not clear on one part. I do need some dimension elements from cube 1 to be loaded into cube 3.
Once i create a dynamic view of cube 2 based on the projects from cube 1 how do i grab some of the dimension elements from cube 1 to be loaded into cube 3.

Could you please clarify.
BariAbdul
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: Combining two cubes with 1 to many relationship

Post by BariAbdul »

Please read what Tom has said again:
What you are going to have to do is have TWO processes. In the first process you will have a view of cube 1 consisting of all the projects you want to process. For each project you process, you will need to create a view on cube 2 that filters to only the project and server classes you want, then shell out to the second process, which has that newly configured view as it's data source, and write to all applicable server classes. :)
"You Never Fail Until You Stop Trying......"
yogin
Posts: 7
Joined: Tue Feb 10, 2015 5:31 pm
OLAP Product: Tm1
Version: 10.2
Excel Version: 2010

Re: Combining two cubes with 1 to many relationship

Post by yogin »

Thanks Tom!, Thanks Abdul!. i got the idea.
Post Reply