Pv (PQL)

Returns the present value of a loan or an investment, based on a constant interest rate. You can use PV with either periodic, constant payments (such as a mortgage or other loan), or a future value that's your investment goal.

  • Returned Output: Numeric
  • Library: PQL \ Common \ Financial
  • Version: 2025.01.000
  • Compatibility:
    • It can be combined with other PQL functions throughout the application.
    • It CANNOT be used with MDX or VBA functions. But it can be used on MDX-based content in other parts of the application.

Syntax

Pv( <Numeric> , <Numeric> , <Numeric> , OPTIONAL <Numeric> , OPTIONAL <Boolean> )

* Click on the function's arguments above for more details on the input values.

Comments

This function is the same as the Microsoft Excel 'PV' function - using the same inputs, logic, and outputs.

Function Arguments

Name

Description

Type

Optional

rate

Interest rate expressed as percentage (per period).

<Numeric>

 

nper

Total number of payment periods.

<Numeric>

 

pmt

Payment made each period; cannot change over the life of the annuity.

<Numeric>

 

fv

Future value; if omitted, the calculation is based on the payments.

<Numeric>

Y

type

Indicates when payments are due; at the end (0) or beginning (1) of the period; if omitted, the calculation uses the end (0).

Number ( <Boolean>)

Y

Note: Literal encoding is in use; this means that Booleans and Dates are represented as numeric values (1 and 0 and timestamps or serial date numbers, respectively).

Example

This example calculates the present value of a series of future cash flows represented by [measures].[Data Sales], discounted at a rate of 0.5% (0.005) per period over 12 periods:

Pv( 0.05, 36, 100, ([measures].[Data Sales]), 1 )