<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Is the first parameter of the XNPV function a field or a constant? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Is-the-first-parameter-of-the-XNPV-function-a-field-or-a/m-p/1519353#M37284</link>
    <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;To see my point better, refer to this site:&lt;/P&gt;&lt;P&gt;[&lt;A href="https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/ChartFunctions/FinancialAggregationFunctionsInCharts/xnpv.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/ChartFunctions/FinancialAggregationFunctionsInCharts/xnpv.htm&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FIRST&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The example shown is wrong. The calculation way is wrong. The result is wrong.&lt;/P&gt;&lt;P&gt;They are all wrong for the same reason.&lt;/P&gt;&lt;P&gt;This example in the help menu must be reviewed and temporally hidden. It is confusing people.&lt;/P&gt;&lt;P&gt;Cashflow:&lt;/P&gt;&lt;P&gt;LOAD 2013 as Year, * inline [&amp;nbsp; ///it’s wrong, last date’s year is 2014&lt;/P&gt;&lt;P&gt;Date|Discount|Payments&lt;/P&gt;&lt;P&gt;2013-01-01|0.1|-10000&lt;/P&gt;&lt;P&gt;2013-03-01|0.1|3000&lt;/P&gt;&lt;P&gt;2013-10-30|0.1|4200&lt;/P&gt;&lt;P&gt;2014-02-01|0.2|6800&lt;/P&gt;&lt;P&gt;] (delimiter is '|');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The function is: Xnpv(Discount, Payments, Date). Net Actual Value of a rent&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I do that with a fixed interest, discount of 10%, that is 0.1, the result is 2967.63 $.&lt;/P&gt;&lt;P&gt;If I do it in excel with the same parameters (VNA.NO.PER), the result is also 2967.63 $.&lt;/P&gt;&lt;P&gt;In the example, it says -3164.35 $. Its wrong, it can’t be negative. If the interpretation is ‘read it positive’, it’s wrong too because the last payment has a bigger discount therefore the actual net value is smaller.&lt;/P&gt;&lt;P&gt;In any case its wrong and needs to be reviewed or maybe explained, for me to understand.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SECOND&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The question is:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is the first parameter of the XNPV function a field or a constant?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Xnpv(Discount, Payments, Date)&lt;/P&gt;&lt;P&gt;If I do it with a constant it works. Otherwise it does not.&lt;/P&gt;&lt;P&gt;Please, please, please, review the help menu.&lt;/P&gt;&lt;P&gt;Please, tell me if it is possible to calculate this function with a variable discount rate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much to everyone who has read this post.&lt;/P&gt;&lt;P&gt;Thank you very much to the workers of the community and help menu.&lt;/P&gt;&lt;P&gt;Thank you very much to those who I haven’t mentioned before.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:44:50 GMT</pubDate>
    <dc:creator>christian77</dc:creator>
    <dc:date>2024-11-16T21:44:50Z</dc:date>
    <item>
      <title>Is the first parameter of the XNPV function a field or a constant?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-the-first-parameter-of-the-XNPV-function-a-field-or-a/m-p/1519353#M37284</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;To see my point better, refer to this site:&lt;/P&gt;&lt;P&gt;[&lt;A href="https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/ChartFunctions/FinancialAggregationFunctionsInCharts/xnpv.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/ChartFunctions/FinancialAggregationFunctionsInCharts/xnpv.htm&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FIRST&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The example shown is wrong. The calculation way is wrong. The result is wrong.&lt;/P&gt;&lt;P&gt;They are all wrong for the same reason.&lt;/P&gt;&lt;P&gt;This example in the help menu must be reviewed and temporally hidden. It is confusing people.&lt;/P&gt;&lt;P&gt;Cashflow:&lt;/P&gt;&lt;P&gt;LOAD 2013 as Year, * inline [&amp;nbsp; ///it’s wrong, last date’s year is 2014&lt;/P&gt;&lt;P&gt;Date|Discount|Payments&lt;/P&gt;&lt;P&gt;2013-01-01|0.1|-10000&lt;/P&gt;&lt;P&gt;2013-03-01|0.1|3000&lt;/P&gt;&lt;P&gt;2013-10-30|0.1|4200&lt;/P&gt;&lt;P&gt;2014-02-01|0.2|6800&lt;/P&gt;&lt;P&gt;] (delimiter is '|');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The function is: Xnpv(Discount, Payments, Date). Net Actual Value of a rent&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I do that with a fixed interest, discount of 10%, that is 0.1, the result is 2967.63 $.&lt;/P&gt;&lt;P&gt;If I do it in excel with the same parameters (VNA.NO.PER), the result is also 2967.63 $.&lt;/P&gt;&lt;P&gt;In the example, it says -3164.35 $. Its wrong, it can’t be negative. If the interpretation is ‘read it positive’, it’s wrong too because the last payment has a bigger discount therefore the actual net value is smaller.&lt;/P&gt;&lt;P&gt;In any case its wrong and needs to be reviewed or maybe explained, for me to understand.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SECOND&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The question is:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is the first parameter of the XNPV function a field or a constant?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Xnpv(Discount, Payments, Date)&lt;/P&gt;&lt;P&gt;If I do it with a constant it works. Otherwise it does not.&lt;/P&gt;&lt;P&gt;Please, please, please, review the help menu.&lt;/P&gt;&lt;P&gt;Please, tell me if it is possible to calculate this function with a variable discount rate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much to everyone who has read this post.&lt;/P&gt;&lt;P&gt;Thank you very much to the workers of the community and help menu.&lt;/P&gt;&lt;P&gt;Thank you very much to those who I haven’t mentioned before.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-the-first-parameter-of-the-XNPV-function-a-field-or-a/m-p/1519353#M37284</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2024-11-16T21:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is the first parameter of the XNPV function a field or a constant?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-the-first-parameter-of-the-XNPV-function-a-field-or-a/m-p/1522106#M37433</link>
      <description>&lt;P&gt;Nobody?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 11:35:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-the-first-parameter-of-the-XNPV-function-a-field-or-a/m-p/1522106#M37433</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2018-12-18T11:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is the first parameter of the XNPV function a field or a constant?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-the-first-parameter-of-the-XNPV-function-a-field-or-a/m-p/1545910#M39318</link>
      <description>&lt;P&gt;The discount rate must be a unique value (the same way Excel would work)&lt;/P&gt;&lt;P&gt;When you have multiple discount rates the calculation is more complex; not sure how easily it can be done in Qlik Sense&lt;/P&gt;&lt;P&gt;See here:&amp;nbsp;&lt;A href="https://www.excelforum.com/excel-general/822608-npv-help.html" target="_blank"&gt;https://www.excelforum.com/excel-general/822608-npv-help.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 13:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-the-first-parameter-of-the-XNPV-function-a-field-or-a/m-p/1545910#M39318</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2019-02-18T13:35:44Z</dc:date>
    </item>
  </channel>
</rss>

