Page 1 of 1

[TM1 10.2.2] Consolidate with MAX criteria w/ RULE [SOLVED]

Posted: Fri Dec 12, 2014 6:48 pm
by f3ar87
Hi everybody! I'm on TM1 10.2.2, 64bit architecture and Excel 2007.

I have a problem trying to aggregate an element in my Measure dimension using Max criteria.
Here is my cube and what i wanted to do (the image are an Excel representation of what i see in Cube Viewer):

Image

The concept is that for every node in the dimension measure on the element "Std. Cost" i want to have on the consolidated element the max of the children below.
At the moment i implemented this formula:

Code: Select all

 ['Std. Cost' ] = C:ConsolidatedMax(0,'',!Warehouse,'Std. Cost'); 
but the result is this one:

Image

Any advice? I searched a lot on this forum and around and also tried a lot with Rule but everything was unsuccesseful :( :( :( :(

Thanks in advance,
Leonardo

Re: [TM1 10.2.2] Consolidate with MAX criteria using RULE

Posted: Sat Dec 13, 2014 2:52 pm
by Marcus Scherer
Leonardo, you only specified two dimensions in the rule but your cube contains at least six. You have to specify all of them in the rigth order.

Re: [TM1 10.2.2] Consolidate with MAX criteria using RULE

Posted: Sun Dec 14, 2014 9:46 am
by Wim Gielis
Marcus Scherer wrote:Leonardo, you only specified two dimensions in the rule but your cube contains at least six. You have to specify all of them in the rigth order.
True, either hardcoded element names, either !dimensionname type of arguments to the function.

Re: [TM1 10.2.2] Consolidate with MAX criteria using RULE

Posted: Mon Dec 15, 2014 5:55 pm
by f3ar87
Hi,
thanks everybody for answering the question!
Anyway, even if I specify the formula like this

Code: Select all

['Std. Cost ] = C:ConsolidatedMax(0,'',!Quality, !Time, !Product, !Part, !Warehouse,'Std. Cost');
the result does not change and I have still the "#N/A" value on the upper level of the dimension.

@Marcus you told about specify dimension "in the right order". What do you mean "in the right order"? I did not find anything about an order in IBM documentation about ConsolidatedMax function.

Thanks again,
Leonardo

Re: [TM1 10.2.2] Consolidate with MAX criteria using RULE

Posted: Mon Dec 15, 2014 6:06 pm
by declanr
f3ar87 wrote:Hi,
@Marcus you told about specify dimension "in the right order". What do you mean "in the right order"? I did not find anything about an order in IBM documentation about ConsolidatedMax function.
You need to specify in the same order as shown in architect under the cube (aka the original build order). This isn't specific to ConsolidatedMax but any longhand rules/TI function in TM1.

Re: [TM1 10.2.2] Consolidate with MAX criteria using RULE

Posted: Mon Dec 15, 2014 7:53 pm
by f3ar87
Thanks so much declanr!!!!!

I put the dimension in the right order and now everything is working!! This is just perfect!

Thanks again!

Leonardo