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

Post Reply
f3ar87
Posts: 5
Joined: Fri Dec 12, 2014 6:14 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2007

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

Post 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
Last edited by f3ar87 on Mon Dec 15, 2014 7:54 pm, edited 1 time in total.
Marcus Scherer
Community Contributor
Posts: 126
Joined: Sun Jun 29, 2008 9:33 am
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2016
Location: Karlsruhe

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

Post 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.
Wim Gielis
MVP
Posts: 3113
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.0.9.18
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

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

Post 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.
Best regards,

Wim Gielis

IBM Champion 2024
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
f3ar87
Posts: 5
Joined: Fri Dec 12, 2014 6:14 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2007

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

Post 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
declanr
MVP
Posts: 1815
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: [TM1 10.2.2] Consolidate with MAX criteria using RULE

Post 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.
Declan Rodger
f3ar87
Posts: 5
Joined: Fri Dec 12, 2014 6:14 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2007

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

Post 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
Post Reply