Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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:
(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.
Solved! Go to Solution.
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.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hi @EddyW ,
if it is strongly related to your original question or you have a question to my answer, then doing it here is fine.
Otherwise just open a new thread and @ImkeF me in there so that it pops up in my notifications.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
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.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
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.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
41 | |
28 | |
27 | |
20 | |
13 |
User | Count |
---|---|
71 | |
55 | |
43 | |
28 | |
22 |