Eliminate Circular reference in a calculation

Post Reply
dwhcognos8
Posts: 21
Joined: Tue Sep 21, 2010 5:43 am
OLAP Product: TM1
Version: 9.5
Excel Version: 2005

Eliminate Circular reference in a calculation

Post by dwhcognos8 »

Hello All,

I want to do a calculation as below:I know that the below calculation creates a circular reference but please let me know if any other option i can use!

['Min Sal']= N:['Min Sal']+ 20(inputvalue);

I mean i want to increase the Min Sal based on the input value or value from another lookup cube.

Please suggest me the option to do the calculation to increase the 'MinSal' based on input value or from a lookup cube?

Thnaks, Sri
declanr
MVP
Posts: 1831
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: Eliminate Circular reference in a calculation

Post by declanr »

If you absolutely need the value in a cell to change based on what was already there you will need to use a TI instead of a rule.

If you absolutely need to use a rule you will need to introduce an extra measure element e.g. ['Min Sal'] , ['Min Sal Adjusted'] and ['Input']
with ['Min Sal Adjusted']=N: ['Min Sal'] + 20['Input'] ;
Declan Rodger
User avatar
George Regateiro
MVP
Posts: 326
Joined: Fri May 16, 2008 3:35 pm
OLAP Product: TM1
Version: 10.1.1
Excel Version: 2007 SP3
Location: Tampa FL USA

Re: Eliminate Circular reference in a calculation

Post by George Regateiro »

Not sure how big of a change it would be in your application, but I generally prefer to do these type of things in a consolidation.

MinSal
MinSalInput
AdjustmentValue

The consolidations quicker for TM1 to perform then rules so I prefer to use consolidation whenever possible for simple math issues.
dwhcognos8
Posts: 21
Joined: Tue Sep 21, 2010 5:43 am
OLAP Product: TM1
Version: 9.5
Excel Version: 2005

Re: Eliminate Circular reference in a calculation

Post by dwhcognos8 »

Thanks for the responses declanr and George.
I am just wondering if i want to do the below calculation as per your logic:

['AdjustmentValue'] =N: ['MinSal'] * (['MinSalInput']/100);
as i need to add the MinSalInput as a percentage of Min Sal.
Procedure:
AdjustmentValue -- Consolidated element
MinSal and MinSalInput are children of AdjustmentValue
Do i need to change the weight value for MinSalInput in element properties to get the percentage?

Thanks, Sri
dwhcognos8
Posts: 21
Joined: Tue Sep 21, 2010 5:43 am
OLAP Product: TM1
Version: 9.5
Excel Version: 2005

Re: Eliminate Circular reference in a calculation

Post by dwhcognos8 »

Contd....

with Rule below?
['AdjustmentValue'] = C: ['MinSal'] * ['MinSalInput']/100;

Is that Correct or i dont need to write any rule?

Thanks, Sri
dwhcognos8
Posts: 21
Joined: Tue Sep 21, 2010 5:43 am
OLAP Product: TM1
Version: 9.5
Excel Version: 2005

Re: Eliminate Circular reference in a calculation

Post by dwhcognos8 »

Contd...

With Feeder below:
['MinSalInput'] => ['AdjustmenValue'];

Thanks, Sri
Post Reply