Hello, I need some help with a circular reference in TM1 (knowing it is not allowed). Attached is a simplified model where a circular reference exists in excel:
interest expense (to simply it I only calculate on short term debt) = STD * interest rate; interest is part of net income that goes into retained earnings on balance sheet
Short term debt - this is basically a plug, short term debt is not allowed to go negative (once it becomes negative cash will increase)
the issue here is that I need to circular reference STD in order to calculate interest expense. In the Tm1 model, this is done through rules (not TI), I can't make it to work (basically crushed the server because of the circular reference), can someone please help me with this?
thanks so much!
Circular reference in a financial model
-
- Posts: 83
- Joined: Wed Feb 28, 2018 2:20 pm
- OLAP Product: TM1
- Version: 10.2.2
- Excel Version: 2016
Circular reference in a financial model
- Attachments
-
- Circular Ref.xlsx
- (10.57 KiB) Downloaded 162 times
-
- Community Contributor
- Posts: 287
- Joined: Fri Feb 15, 2013 5:49 pm
- OLAP Product: TM1
- Version: PA 2.0.9.1
- Excel Version: 365
- Location: Minneapolis, USA
Re: Circular reference in a financial model
To be sure, you don't really have a TM1 problem, you have a math problem. Solve the circular ref issue in excel (without iterative calc turned on) and you would solve your problem implementing in TM1. I wasn't a math major, so the attached solution might not be the most elegant, but one way to solve these is to calc individual parts that are not part of the dependent calculation and reference those instead. I've done this in the attached in rows 19 through 22 in column D. Column B has your original formulas. By calcing retained earnings & net income before interest is applied, you can calc short-term debt before interest and then apply the interest and sum the result for your final short-term debt amount. I consolidated the formula in cell E23 if you don't like creating measures for the different formula steps.
- Attachments
-
- Circular Ref.xlsx
- (11.72 KiB) Downloaded 178 times
-
- Posts: 83
- Joined: Wed Feb 28, 2018 2:20 pm
- OLAP Product: TM1
- Version: 10.2.2
- Excel Version: 2016
Re: Circular reference in a financial model
oh wow I never thought of circumventing formulas like that, you are a genius! thanks a ton!!
-
- Community Contributor
- Posts: 287
- Joined: Fri Feb 15, 2013 5:49 pm
- OLAP Product: TM1
- Version: PA 2.0.9.1
- Excel Version: 365
- Location: Minneapolis, USA
Re: Circular reference in a financial model
Cubewise had a good blog post on working through circular ref in TM1, provides good examples & visuals.
https://code.cubewise.com/blog/resolvin ... alculation
https://code.cubewise.com/blog/resolvin ... alculation