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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
shephee
Frequent Visitor

PMT function in DAX

I am trying to utilize the PMT function in DAX with this formula: 

Monthy Payment = pmt(dim_loan[loan_interest_rate]/12,dim_loan[payment_months],dim_loan[loan_original_amount])

 

When I run it I get the following error message:  "An argument of function 'PMT' has the wrong data trype or the result is too large or too small".

 

I have been able to isolate which field is causing the error and that is the "dim_loan[payment_months]" field.  I am not sure why that is as this field is formatted as a whole number.  Any advice or help would be appreciated. 

 

As I am new with posting for help here, if there is any additional info needed please let me know.

4 REPLIES 4
DanDeeGee
Regular Visitor

Hi @shephee!

 

Did you ever find the answer as to why the dim_loan[payment_months] field (or anything else for that matter) was causing the issue?  I have just encountered this myslef and am tearing my hair out... and I have none!

 

Thanks,

 

Dan

Greg_Deckler
Community Champion
Community Champion

@shephee Do you have a blank somewhere in your data?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

There are no blanks values.  I checked and I see some 0's but I filtered those out and still have the issue.

Hi @shephee ,

 

You should Make sure that you are consistent about the units you use for specifying rate and nper.

Rate is the first parameter and nper is the second parameter about the PMT function.

If you make monthly payments on a four-year loan at an annual interest rate of 12 percent, use 0.12/12 for rate and 4*12 for nper.

If you make annual payments on the same loan, use 0.12 for rate and 4 for nper.

 

For more information, you can refer this documentation:

PMT function (DAX) - DAX | Microsoft Learn

 

Hope this helps you.

 

Best Regards,

Community Support Team _Yinliw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.