CUMPRINC

Updated on

CUMPRINC is a DAX function that returns the cumulative principal paid on a loan between a start period and an end period.

Syntax

CUMPRINC(
   Rate,
   Nper,
   Pv,
   Start_period,
   End_period,
   Type
)
Argument Properties Description
Rate The interest rate.
Nper The total number of payment periods.
Pv The present value.
Start_period The first period in the calculation. Payment periods are numbered beginning with 1.
End_period The last period in the calculation.
Type The timing of the payment.

Return Values

The cumulative principal paid in the specified period.

Remarks

  • Make sure that you are consistent about the units you use for specifying rate and nper. If you make monthly payments on a four-year loan at an annual interest rate of 10 percent, use 0.1/12 for rate and 4*12 for nper. If you make annual payments on the same loan, use 0.1 for rate and 4 for nper.

  • start_period, end_period, and type are rounded to the nearest integer.

  • An error is returned if:

    • rate ≤ 0.
    • nper < 1.
    • pv ≤ 0.
    • start_period < 1 or start_period > end_period.
    • end_period < start_period or end_period > nper.
    • type is any number other than 0 or 1.
  • This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.

Examples

Data Description
9% Annual interest rate
30 Term in years
125000 Present value

Example 1

The following DAX query:

EVALUATE
{
  CUMPRINC(0.09/12, 30*12, 125000, 13, 24, 1)
}

Returns the total principal paid in the second year of payments, periods 13 through 24, assuming the payments are made at the beginning of each month.

[Value]
-927.153472378062

Example 2

The following DAX query:

EVALUATE
{
  CUMPRINC(0.09/12, 30*12, 125000, 1, 1, 0)
}

Returns the principal paid in a single payment in the first month, assuming the payment is made at the end of the month.

[Value]
-68.2782711809784

Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/dax/cumprinc-function-dax

2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy