Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kiddn
Helper I
Helper I

Calculate weighted average between 2 values, with dynamic lookup date

 

Hi, I've got a really curly one here. Hoping someone can help.

 

I'm attempting to recreate historical daily forward (financial) rate based on a moving date.

 

As an example,

 

On the 26th February 2018, we enter into an option to sell EUR10 million. The option has a term of 330 days. I would like to calculate what the weighted average forward points are on that day, knowing that we only have a table that provide forward points at certain intervals (table below. In this case 1, 7, 14, 30 and so on. For a term of 330 days it lies between 273 and 365 days so should take the weighted average of these 2 terms. This would be caculated as ((0.0368+.04982)/(273+365)) * 330 = 0.044803.

 

This rate would then be used as a comparison to using an option product to evaluate options vs forwards as a mechanism for hedging.

 

So key aspects are -

 

1. Date of contract - calculation needs to be over historical contracts so dynamic

2. Term of contract

3. Calculating fwds points between 2 values

4. Multiplying Weighted average fwd points by term to get total fwd points.

5. New column showing Total fwd points applied to individual contract based on term

 

Any help greatly appreciated.

 

 

26/02/2018DEURNZD10.00012
26/02/2018DEURNZD70.00092
26/02/2018DEURNZD140.00183
26/02/2018DEURNZD300.00379
26/02/2018DEURNZD600.00835
26/02/2018DEURNZD910.01234
26/02/2018DEURNZD1820.02447
26/02/2018DEURNZD2730.03680
26/02/2018DEURNZD3650.04982
26/02/2018DEURNZD5470.07550
26/02/2018DEURNZD7300.10238
26/02/2018DEURNZD10950.15377
26/02/2018DEURNZD14600.21016
26/02/2018DEURNZD18250.26680

 

1 ACCEPTED SOLUTION

Hi,

 

You may refer to my solution in this file.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

16 REPLIES 16

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.