Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
PMT function exists in DAX but I need to do this calculation in Power Query.
Does anyone have a workaround for this?
You can either do the math manually, or write a custom function. Here is a function that does it:
(PV, r, n) =>
let
Payment = (r * PV) / (1 - Number.Power(1 + r, -n))
in
Payment
Now just use it like normal.
I added a custom column and typed = fnPMT([Present Value], [Rate], [Term]) and it did the work.
I used the base formula from here @Anonymous - you may need to divide your rate by the periods in a year depending on how your data is laid out. In that case it would be fnPMT([Present Value], [Rate]/12, [Term])
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingThe difference between DAX's PMT calculation and this is that this does not consider Future VAlue (FV) in the formula.
What this helpful @Anonymous ? Any questions?
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI Reporting@Anonymous You can find the formula for PMT here: P-Q Excel to DAX Translation - Microsoft Power BI Community Should be able to translate it to M since it is all base arithmatic.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
12 | |
8 | |
8 | |
7 |
User | Count |
---|---|
15 | |
13 | |
9 | |
7 | |
6 |