Uneven Dimension # :Cube Transfer from 1 Cube to Another

Post Reply
appleglaze28
Regular Participant
Posts: 269
Joined: Tue Apr 21, 2009 3:43 am
OLAP Product: Cognos TM1, Planning
Version: 9.1 SP3 9.4 MR1 FP1 9.5
Excel Version: 2003

Uneven Dimension # :Cube Transfer from 1 Cube to Another

Post by appleglaze28 »

I'd like to ask how this can be done. I have a source cube with 4 dimensions like Position-Department, Year, Version and Measure. I have a destination cube with 6 dimension, Department, Shift, Month, Year, Version & Measure. I plan to link the data field, Shift & Time from the source cube to the destination cube. I'm having like issues as well on how to correctly do it since the element linking the Position-Department to Department is the ELPAR of the source dimension.

So I tried writing this command:

Code: Select all

['New Employees']=DB('New_Headcount_Cost',ELPAR('Title',!Title,2),DB('New_Headcount_Cost',ELPAR('Title',!Title,2),!Year,!Version,'Month')!Year,!Version,'Shift');
Attachments
Dimensions.JPG
Dimensions.JPG (89.23 KiB) Viewed 2858 times
Dimensions.JPG
Dimensions.JPG (89.23 KiB) Viewed 2858 times
TM1-Cube.JPG
TM1-Cube.JPG (46.87 KiB) Viewed 2858 times
User avatar
jim wood
Site Admin
Posts: 3958
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: Uneven Dimension # :Cube Transfer from 1 Cube to Another

Post by jim wood »

Have you considered using a look up cube for this rather than using elpar in the rule? Doing this might be easier to maintain and also help you split the process in to steps that might help you identify the error?
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
User avatar
Steve Rowe
Site Admin
Posts: 2456
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: Uneven Dimension # :Cube Transfer from 1 Cube to Another

Post by Steve Rowe »

It's also worth pointing out that using Elpar in rules is very unreliable and not really recommended (by me anyway :roll: ) This is because of the index in the function and the multiple hierarchies in the dimension. There is no way to control which hierarchy is "2" and just because the hierarchy for one element is "2" this does not mean it will be 2 for all elements in the dimension. As well as that problem it's not stable and I have seen the hierarchy that was "1" become "2".

Setting up the attributes is the way to go. It should make the rule faster too.

That said your rule looks wrong, did you mis-paste it?

['New Employees']=N:DB('New_Headcount_Cost',!Department,!Year,!Version,'Month');

Should just work. Even though Department is not in the in the headcount cost cube, the N levels of Department are in the Titles dimension so the match will still work. I think that you would need to put more elements on the left of the rule to specify what is happening with the shift and month dimensions.

The problem you will have is with the feeder from the Headcount cost cube, since feeders only operate at the N level and the N levels of Title are not in the Department dimension the feeders will fail. This is where you need to use Elpar or an attribute.
In the Headcount cost cube you would have something like.
['Month']=>DB('Employee Headcount Measures', Attrs('Title', !Title,'Department'), 'Hardcoded reference to shift',''Hardcoded reference to month', !Year, !Version, 'New Employees');

Hope this gives you an idea of what to do, that’s if I’ve not got the wrong end of the stick.
Cheers
Technical Director
www.infocat.co.uk
User avatar
jim wood
Site Admin
Posts: 3958
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: Uneven Dimension # :Cube Transfer from 1 Cube to Another

Post by jim wood »

Just to be clear about one thing though, using attributes and look up cubes is essentially the same thing. It depends on you. I personally prefer look up cubes as they are visable at all times and if somebody else took over the model they can be easier to explain, where as using attributes keeps the whole process nicely tucked away.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Post Reply