Forum Discussion
Goal Seek to Each Row for Effective Interest Rate
Hello Everyone,
Before I explain what my problem is, please read my case first:
Company A have to loan using 2 source of fund, which backed up by loan and capital, respectively 70% and 30%. This company using this proportion to get cash in short time but still efficient. They know each rate of source funding (Attached in following Excel). But the management wanted to know the Effective Interest Rate (EIR) of total cost.
Assume the loan installment is not known, in order to calculate EIR, i only have two main components:
- Loan Tenure or Period of Loan
- Loan Amount
(While the effective interest is obtained by using goal seek.)
Actually, i can do this in Microsoft Excel using goal seek property in vba. However, i feel like it takes too long (had to calculate to each row for 150k+ times) around one hour and the company asked me to apply it in PowerBI. I also have read some articles here in powerBI using Binary-search algorithm, but i don't really understand the script and where to get started. Did anyone can help me to create this script?
Warm Regards,
Eddy W.
Hi EddyW ,
if you want a fast calculation, I strongly recommend to use DAX in this case. Using the RATE function after using the PMT-function does the trick. See enclosed file. 150k rows load in a couple of seconds.
3 Replies
- EddyWFrequent Visitor
Hello ImkeF
Thank you so much for the DAX formula. It's really frustrating for me to calculate those using goalseek vba 😂. By the way, i would like to ask again. Since it is still related to this question and i'm still new here, may i ask something again over here or i should ask in another discussion?
Best Regards,
Eddy W.
- ImkeF
Community Champion