NPV - 脚本函数
NPV() 用于根据迭代于
Syntax:
NPV(discount_rate, value)
Return data type: 数字。 结果默认采用货币数字格式。
Arguments:
参数 | 说明 |
---|---|
discount_rate | discount_rate 是在整个期间的折扣率。 |
value | 表达式或字段包含要度量的数据。 |
Limitations:
文本值,
Examples and results:
将示例脚本添加到应用程序并运行。然后,至少要将结果列中列出的字段添加到应用程序中的表格才能查看结果。
示例 | 结果 | ||||
---|---|---|---|---|---|
Cashflow: LOAD 2013 as Year, * inline [ Date|Discount|Payments 2013-01-01|0.1|-10000 2013-03-01|0.1|3000 2013-10-30|0.1|4200 2014-02-01|0.2|6800 ] (delimiter is '|');
Cashflow1: LOAD Year,NPV(0.2, Payments) as NPV1_2013 Resident Cashflow Group By Year; |
Year 2013 |
NPV1_2013 -$540.12 |
|||
前提是 LOAD Year,NPV(Discount, Payments) as NPV2_2013 Resident Cashflow Group By Year, Discount; 注意, |
|