Short answer: DAX has the Excel financial functions: loans and savings (PMT, IPMT, PPMT, FV, PV, NPER, RATE, CUMIPMT, CUMPRINC), investment returns on dated cash flows (XNPV, XIRR), growth (RRI, PDURATION), depreciation (SLN, DB, DDB, SYD, VDB, AMORLINC, AMORDEGRC), rate conversion (EFFECT, NOMINAL) and about 25 bond and security functions (PRICE, YIELD, DURATION, ACCRINT and more). Money paid out is negative and money received positive, as in Excel.
They let a model compare projects, show loan schedules or depreciation without exporting to Excel. XNPV and XIRR are the most useful in reports, because they take a table of dated cash flows.
Which functions handle loans and savings?
| Function | Example | Result |
|---|---|---|
| PMT ( rate, nper, pv ) | PMT ( 0.05 / 12, 60, 20000 ) | -377.42 a month |
| IPMT ( rate, per, nper, pv ) | IPMT ( 0.05 / 12, 1, 60, 20000 ) | -83.33 interest in month 1 |
| PPMT ( rate, per, nper, pv ) | PPMT ( 0.05 / 12, 1, 60, 20000 ) | -294.09 principal in month 1 |
| CUMIPMT ( rate, nper, pv, start, end, type ) | CUMIPMT ( 0.05 / 12, 60, 20000, 1, 12, 0 ) | interest in year 1 |
| NPER ( rate, pmt, pv ) | NPER ( 0.05 / 12, -500, 20000 ) | 43.8 months at 500 a month |
| RATE ( nper, pmt, pv ) | RATE ( 60, -377.42, 20000 ) * 12 | 5% |
| FV ( rate, nper, pmt, pv ) | FV ( 0.04, 10, 0, -10000 ) | 14,802.44 |
| PV ( rate, nper, pmt ) | PV ( 0.06, 10, -1000 ) | 7,360.09 |
| ISPMT ( rate, per, nper, pv ) | ISPMT ( 0.05 / 12, 1, 60, 20000 ) | interest of a straight-line loan |
The optional type is 0 for payments at the end of each period (the default) and 1 for the start.
How do you calculate return on dated cash flows?
| Date | Cash flow |
|---|---|
| 2026-01-01 | -10,000 |
| 2026-07-01 | 3,000 |
| 2027-01-01 | 4,000 |
| 2027-07-01 | 5,000 |
Project NPV 8% = XNPV ( Cashflows, Cashflows[Amount], Cashflows[Date], 0.08 )
Project IRR = XIRR ( Cashflows, Cashflows[Amount], Cashflows[Date] )For these flows XNPV at 8% is about 1,048 and XIRR about 18.6% a year. Both take the table, so they respect slicers: filter by project and each row shows its own return. XIRR takes an optional guess and an alternate result for when it cannot find a rate.
Which functions handle growth and rates?
| Function | Example | Result |
|---|---|---|
| RRI ( nper, pv, fv ) | RRI ( 5, 1000, 1500 ) | 8.45% a year (equivalent growth rate) |
| PDURATION ( rate, pv, fv ) | PDURATION ( 0.05, 1000, 2000 ) | 14.2 periods to double |
| EFFECT ( nominal, npery ) | EFFECT ( 0.05, 12 ) | 5.12% effective |
| NOMINAL ( effect, npery ) | NOMINAL ( 0.0512, 12 ) | about 5% nominal |
RRI is the compound annual growth rate: RRI ( Years, [First Year Revenue], [Last Year Revenue] ).
Which functions depreciate assets?
| Function | Method | Year 1 |
|---|---|---|
| SLN ( cost, salvage, life ) | straight line | 1,800 |
| DB ( cost, salvage, life, period ) | fixed declining balance | 3,690 |
| DDB ( cost, salvage, life, period [, factor] ) | double declining balance | 4,000 |
| SYD ( cost, salvage, life, period ) | sum of years' digits | 3,000 |
| VDB ( cost, salvage, life, start, end ) | declining balance for any span, switching to straight line | 4,000 for period 0 to 1 |
| AMORLINC, AMORDEGRC | French accounting system | per period |
Which functions price bonds and securities?
| Group | Functions |
|---|---|
| price and yield | PRICE, YIELD, PRICEDISC, YIELDDISC, PRICEMAT, YIELDMAT |
| odd periods | ODDFPRICE, ODDFYIELD, ODDLPRICE, ODDLYIELD |
| duration | DURATION, MDURATION |
| accrued interest | ACCRINT, ACCRINTM |
| coupons | COUPDAYBS, COUPDAYS, COUPDAYSNC, COUPNCD, COUPNUM, COUPPCD |
| discount and received | DISC, INTRATE, RECEIVED |
| treasury bills | TBILLEQ, TBILLPRICE, TBILLYIELD |
| fractional prices | DOLLARDE, DOLLARFR |
They follow Excel's definitions, with settlement and maturity dates and a day-count basis.
What goes wrong?
- Annual rate with monthly periods. Divide the rate by 12 and use months for nper.
- Signs. Paid out is negative; PMT on a positive loan returns a negative payment.
- XIRR without a sign change. All positive or all negative flows have no rate; pass the alternate result.
- The wrong grain.
XNPVandXIRRevaluate the values and dates expressions for each row of the table; iterate one row per cash flow date (for exampleVALUES ( 'Date'[Month Start] )with a measure as the value).
Where can you check this?
- Microsoft Learn: Financial functions (DAX)
- Microsoft Learn: XIRR function (DAX)
- Microsoft Learn: PMT function (DAX)
Where do you start?
Put your projects' cash flows in one table with a project column and show XNPV and XIRR per project. Other functions covers BLANK, ERROR and the debugging helpers.