Circular reference with previous value

Occasional Contributor

Circular reference with previous value

Hi,

 

I have two line items in my module. The first value in the first line item is picked up from an another module, but the second value is first value of second line item and so on. My second line item is a product of first with some number (x)Example.JPG

When I use Yield = Starting Yield Coupon * X - I get a circular referencing warning error. I have used the forumla below for "Starting Yield Coupon"

 

 

IF Period.Coupon = 1 THEN Rates.Base Yield Coupon[LOOKUP: Period.Previous] ELSE Yield[LOOKUP: Period.Previous]

 

Where "Previous" is a property to identify previous value and "Coupon" to identify the first value. 

 

Is there any other way to get this done?

Message 1 of 8
7 REPLIES 7
Community Boss

Re: Circular reference with previous value

Hi,

 

In summary of your issue, formula for first line is the previous value of 2nd line. And, formula for 2nd line = Line 1 * factor 'x'.

Clearcut  circular refernce issue.

Prima facie, looks like there is something wrong with the logic, you are trying to build. Please check once.

 

Regards,

Pavan 

 

 

Message 2 of 8
Occasional Contributor

Re: Circular reference with previous value

 Hi Pavan,

 

Yes, you got the logic correct but I think the piece you missed out was the initialization. The first value of the first list (in column 1) is taken from another source. I am attaching the logic in Excel for reference. Excel.JPG

 

 

 

Let me know if this helps!

Message 3 of 8
Community Boss

Re: Circular reference with previous value

Hi,
Okay, got it.
Then, how is the values calculated in Yield (Column E)?

Pavan
Message 4 of 8
Occasional Contributor

Re: Circular reference with previous value

Hi Pavan,

 

Yield is a function of Starting Yield i.e E3 = D3 * x (where x is some constant). Similarly E4 = D4 * x and so on

Message 5 of 8
Community Boss

Re: Circular reference with previous value

Hi,

Got it. 

Both lines are refering to each other. This cannot happen. Please check with the business to take clarity on the requirement.

 

Regards,

Pavan 

Message 6 of 8
Highlighted
Super Contributor

Re: Circular reference with previous value

Hi Only way you can achieve this would be using offset and other time based functions.

The limitation is it just works with the time list but does not work with general lists.
Message 7 of 8
Community Boss

Re: Circular reference with previous value

Yes. You are right Harish.

Regards,
Pavan
Message 8 of 8