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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
saturation
Frequent Visitor

Mortgage Payment Calculation

Hi, I've checked the forums....It doesn't appear it's possible to do mortgage amortization, but I'm wondering if it's possible just to calculate a simple monthly payment based on # years, rate, and price? I can't believe there's nothing in Power BI to do this--or so it appears (or DAX).

1 ACCEPTED SOLUTION

Hi @FAIRFIELD1511 

I modify my formula according to this article.

Capture27.JPG

Assume the second line is :

you borrow 25000 at 0.0425 rate for 30 years,

then formula for part1-part3 are as follows:

monthly rate = [yearly rate]/12

part1 = POWER(1+[monthly rate],[years]*12)-1

part2 = [monthly rate]*POWER(1+[monthly rate],[years]*12)

part3 = [part1]/[part2]

Loan payment monthly = [loan amt]/[part3]

Capture28.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

10 REPLIES 10
v-juanli-msft
Community Support
Community Support

Hi @saturation 

Is this problem sloved? 
If it is sloved, could you kindly accept it as a solution to close this case?
If not, please let me know.
 
Best Regards
Maggie
v-juanli-msft
Community Support
Community Support

Hi @saturation 

Could you show some data example or details of your requirement?

 

There are some examples of Mortgage Payment Calculation in Power BI:

https://community.powerbi.com/t5/Data-Stories-Gallery/Loan-Calculator/td-p/242585

https://www.youtube.com/watch?v=H65PLeAglBM

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The loan calculator is pretty close. Basically, here's what I've got (static data, no need for the sliders).

 

ID  |  Loan Amt  |   Years   |    Rate     |     Monthly Pymt   |   Interest

1        10000            5             .0375   |         150                |     20

2         25000           30           .0425    |         250             |       35

 

The Monthly Pymt and Interest columns are the data that I need....Thoughts?

Hi @saturation 

If i understand the Mortgage Payment Calculation correctly,

Capture16.JPG

And your [rate] is monthly rate,

You could create calculated columns in Power BI Desktop

monthly pymt =
VAR power1 =
    POWER ( ( 1 + [rate] ), [years] * 12 )
RETURN
    [loan amt]
        * DIVIDE ( [rate] * power1, power1 + 1 )
total interest = [monthly pymt]*[years]*12-[loan amt]

Capture18.JPG

 

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Thanks @v-juanli-msft . I think your formula is very close, although there's a miscalculation somewhere, and I can't seem to locate it. Basically if I do mortgage calculator for the 2nd loan in the example (just googled it), the actualy monthly payment should come out to $123. I'm struggling to figure out where in the formula needs to be corrected...

@v-juanli-msft Any thoughts on the monthly payment results provided from the Google mortgage calculator vs what your results look like in the example? Just trying to figure out where the formula needs to be corrected. Any help is appreciated!

Hi @FAIRFIELD1511 

I modify my formula according to this article.

Capture27.JPG

Assume the second line is :

you borrow 25000 at 0.0425 rate for 30 years,

then formula for part1-part3 are as follows:

monthly rate = [yearly rate]/12

part1 = POWER(1+[monthly rate],[years]*12)-1

part2 = [monthly rate]*POWER(1+[monthly rate],[years]*12)

part3 = [part1]/[part2]

Loan payment monthly = [loan amt]/[part3]

Capture28.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

@saturation   I calculated them as following. Can you please advise how did you arrive on those numbers for those two columns?

 

IDLoan AmtYearsRateFV# MonthsMonthly PMT
11000050.0375$12,021.0060$200.35
225000300.0425$87,140.88360$242.06

========================
Did I answer your question? Mark my post as a solution!
Proud to be a Super User
My Custom Visualization Projects
• Plotting Live Sound: Live Sound
• Beautiful News: Women in Parliament, Energy Mix, Shrinking Armies
• Visual Capitalist: Working Hrs
• Others: Easing Graph, Animated Calendar
MayViz Submissions
• Week 1: View
• Week 2: View
• Week 3: View
• Week 4: View
========================

@smpa01 They're not real, only for display only purposes....I'm just looking to see how to get them to calculate properly (the last 2 columns), whatever they may be....

@saturation  DAX (faster)/ M (slower) query can aboslutely cater to your need to prepare a dynamic amortization schedule, once you figure out how you can replicate excel CUMIPMT and CUMPRINC


========================
Did I answer your question? Mark my post as a solution!
Proud to be a Super User
My Custom Visualization Projects
• Plotting Live Sound: Live Sound
• Beautiful News: Women in Parliament, Energy Mix, Shrinking Armies
• Visual Capitalist: Working Hrs
• Others: Easing Graph, Animated Calendar
MayViz Submissions
• Week 1: View
• Week 2: View
• Week 3: View
• Week 4: View
========================

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.