<?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 Re: Qlik scripting NPV solution in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlik-scripting-NPV-solution/m-p/931069#M651619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Can you attac the sample qvw with th data. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Aug 2015 12:45:59 GMT</pubDate>
    <dc:creator>qlikviewwizard</dc:creator>
    <dc:date>2015-08-30T12:45:59Z</dc:date>
    <item>
      <title>Qlik scripting NPV solution</title>
      <link>https://community.qlik.com/t5/QlikView/Qlik-scripting-NPV-solution/m-p/931068#M651618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a tricky one...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this equation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;RangeSum(NPV(Discount, -Payments + Income, Investment)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Say I had:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RangSum ( NPV ( 0.08, ( -&lt;EM&gt;&lt;STRONG&gt;X&lt;/STRONG&gt;&lt;/EM&gt; + 140000 ) , 50000 )&amp;nbsp; = 85000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where the payments and income were generated over 12 years......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I solve this equation for &lt;EM&gt;&lt;STRONG&gt;X&lt;/STRONG&gt;&lt;/EM&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would prefer to solve it in the script using inputs from a single line table like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * Inline &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NPV,Discount,Income,LifeOfLoan&lt;/P&gt;&lt;P&gt;85000,0.08,140000,12&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any recommendations?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Aug 2015 03:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlik-scripting-NPV-solution/m-p/931068#M651618</guid>
      <dc:creator />
      <dc:date>2015-08-29T03:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik scripting NPV solution</title>
      <link>https://community.qlik.com/t5/QlikView/Qlik-scripting-NPV-solution/m-p/931069#M651619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Can you attac the sample qvw with th data. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Aug 2015 12:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlik-scripting-NPV-solution/m-p/931069#M651619</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-08-30T12:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik scripting NPV solution</title>
      <link>https://community.qlik.com/t5/QlikView/Qlik-scripting-NPV-solution/m-p/931070#M651620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure I understand your purpose since QV takes only two parameters for NPV - discount rate and cash flow for all the preriods.&lt;/P&gt;&lt;P&gt;The simple present value is calculated as: Cash Flow / ((1 + Discount Rate) ^ No. of periods), so if you are looking for cash flow you just need to multiply your NPV by (&lt;SPAN style="font-size: 13.3333330154419px;"&gt;(1 + Discount Rate) ^ No. of periods).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Maxim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 01:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlik-scripting-NPV-solution/m-p/931070#M651620</guid>
      <dc:creator>maksim_senin</dc:creator>
      <dc:date>2015-08-31T01:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik scripting NPV solution</title>
      <link>https://community.qlik.com/t5/QlikView/Qlik-scripting-NPV-solution/m-p/931071#M651621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Maxim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have me thinking that I may have overthought this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is I know the incoming part of the cash flow (Benefits) but not the payments. So according to your rationale I&amp;nbsp; thought that would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Benefits - Payments = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NPV * (&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(1 + Discount Rate) ^ No. of periods) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Therefore....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Payments = &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NPV * (&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(1 + Discount Rate) ^ No. of periods) + Benefits&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this Im getting a payments figure far in excess of my benefits so Im not sure this is correct. Note that I am first creating a table that discount the year on year benefits and summing them to get the properly discounted benefit value. Your logic makes sense, but can you see where I might go wrong with my approach?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 03:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlik-scripting-NPV-solution/m-p/931071#M651621</guid>
      <dc:creator />
      <dc:date>2015-08-31T03:05:04Z</dc:date>
    </item>
  </channel>
</rss>

