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; |
|