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
Hedman77
New Member

Investment Portfolio with variable GICs interest rate - Find Weighted Average Interest Rate

Hello,

Any help or lead is appreciated:

 

My company has some investments in bonds/GIC.

I have 2 tables: Bond Table and Transaction Table.

 

The Bond Table is built as follows:

Bond Name // Start Date // End Date // Interest Rate

Bond A // 2023-01-01 // 2023-06-30 // 0.045

Bond A // 2023-07-01 // 2023-12-31 // 0.049

Bond A // 2024-01-01 // 2024-08-15 // 0.035

Bond B // 2022-01-01 // 2024-06-30 // 0.08

 

The Transaction Table is built as follows:

Transaction Date // Bond Name (Description) // Operations // Amount

2023-01-01 // Bond A // Buy // (1,000)

2023-05-01 // Bond A // Buy // (5,000)

2023-06-01 // Bond A // Sell // 888

2023-11-01 // Bond A // Buy // (499)

2022-01-01 // Bond B // Buy // (1,000)

 

(The cardinality between Bond and Transaction Table = many to many based on the relationship of Bond Name and Bond Name (Description))

I was able to find the daily capital invested, which means how many $ is currently invested at a certain date. (Example, as of 2023-01-01, I have 2,000$ invested, but as of 2023-06-01, I have 6,112$ invested. Between 2023-01-01 & 2023-04-30, every day, I have 2,000$ in invested capital.)

Right now, My objective is to find the weighted average daily interest rate (Example, as of 2023-01-01, my W.A Interest = 1,000$*0.045 (Bond A) + 1,000$*0.08 (Bond B) / Invested Capital of 2,000$ = 6.25% // but on 2023-07-01, my W.A Interest = 5,112$*0.049 + 1,000$*0.08 (Bond B) / Invested Capital of 6,112$ = 5.407%)

 

Any leads on how can I fund the daily W.A Interest Rate?

It's a mix of date scaffold // event in progress, but I have multiple variables for each day (Bond Name, Bond Amount & Interest Rate)...and the fact that my cardinality is "Many to Many".

0 REPLIES 0

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.

Top Kudoed Authors