Load from Cube1 to Cube2 using DB rule
Posted: Tue Aug 21, 2012 6:59 am
Hi gurus!
So im trying to do a simple rule and i cant get it to work the way im expecting it. Heres what i want to do:
Cube1 has several dimensions but only one im interested in for now. Its called Account. The Account dim has loads of elements that i do not want to load into cube2. I only want to load the consolidated level from dimension Account.
So i built a new Account dimension called AccountNew that has elements that corresponds to the consolidated level in dimension Account. I also created an attribute in Account for the consolidated level. I hope you are following me
.
The rule i wrote looks like this in the Cube2 rules.
['Amount'] = DB('Cube1',!Fiscal Period,ATTRS('Account',!Account,'AccountCLevel'),'Amount');
This gives me a syntax error so i followed this thread http://www.tm1forum.com/viewtopic.php?f=3&t=7076 and changed the rule to an explicit account
['Amount'] = DB('Cube1',!Fiscal Period,ATTRS('Account','1234','AccountCLevel'),'Amount');
This compiles but i get no values in my target cube (Cube2). It even went so far that im doing trial and error
, witn =N: and =C: but the same result.
Does anyone have any ideas how to fix this?
Thanks alot.
Peter
So im trying to do a simple rule and i cant get it to work the way im expecting it. Heres what i want to do:
Cube1 has several dimensions but only one im interested in for now. Its called Account. The Account dim has loads of elements that i do not want to load into cube2. I only want to load the consolidated level from dimension Account.
So i built a new Account dimension called AccountNew that has elements that corresponds to the consolidated level in dimension Account. I also created an attribute in Account for the consolidated level. I hope you are following me

The rule i wrote looks like this in the Cube2 rules.
['Amount'] = DB('Cube1',!Fiscal Period,ATTRS('Account',!Account,'AccountCLevel'),'Amount');
This gives me a syntax error so i followed this thread http://www.tm1forum.com/viewtopic.php?f=3&t=7076 and changed the rule to an explicit account
['Amount'] = DB('Cube1',!Fiscal Period,ATTRS('Account','1234','AccountCLevel'),'Amount');
This compiles but i get no values in my target cube (Cube2). It even went so far that im doing trial and error

Does anyone have any ideas how to fix this?
Thanks alot.
Peter