<?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: IRR fuction in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IRR-fuction/m-p/1539215#M746763</link>
    <description>your are welcome.&lt;BR /&gt;Regards.&lt;BR /&gt;&lt;BR /&gt;Wicham..</description>
    <pubDate>Mon, 04 Feb 2019 16:55:12 GMT</pubDate>
    <dc:creator>tincholiver</dc:creator>
    <dc:date>2019-02-04T16:55:12Z</dc:date>
    <item>
      <title>IRR fuction</title>
      <link>https://community.qlik.com/t5/QlikView/IRR-fuction/m-p/1538636#M746753</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;Hi Friends,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I need your help please, I struggle with the IRR function, here is my&amp;nbsp; sql server table:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I want to calculate the the internal rate&amp;nbsp; (IRR) for each Projet. I ve used&amp;nbsp;=RangeIRR($(vinvet),$(repeat(vpayment &amp;amp;',',$(vNumber-of-payment)))) but is not working. I need to get those variable from SQLServer and calculate the IRR. thank you very much&lt;/FONT&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;projet&lt;/TD&gt;&lt;TD&gt;invest&lt;/TD&gt;&lt;TD&gt;payment&lt;/TD&gt;&lt;TD&gt;Number-of- payment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;-5000&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;-3000&lt;/TD&gt;&lt;TD&gt;600&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;-7000&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;TD&gt;36&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IRR-fuction/m-p/1538636#M746753</guid>
      <dc:creator>Jamal</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: IRR fuction</title>
      <link>https://community.qlik.com/t5/QlikView/IRR-fuction/m-p/1538855#M746754</link>
      <description>&lt;P&gt;Hi Jamal, try with this scripting:&lt;/P&gt;&lt;P&gt;Result is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sin título.png" style="width: 322px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5106i95040BA9C96C8687/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sin título.png" alt="Sin título.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Payments:&lt;BR /&gt;LOAD&lt;BR /&gt;'Pays' as Pays,&lt;BR /&gt;projet,&lt;BR /&gt;payment as CashFlow,&lt;BR /&gt;payment,&lt;BR /&gt;[Number-of- payment]&lt;BR /&gt;FROM [$(Data)Libro.xlsx](ooxml, embedded labels, table is Hoja4);&lt;/P&gt;&lt;P&gt;TempTable:&lt;BR /&gt;LOAD&lt;BR /&gt;Max([Number-of- payment]) as MaxPay,&lt;BR /&gt;Min([Number-of- payment]) as MinPay,&lt;BR /&gt;Pays&lt;BR /&gt;Resident Payments Group By Pays;&lt;/P&gt;&lt;P&gt;LET vMax= Peek('MaxPay',0,'TempTable');&lt;BR /&gt;LET vMinPay= Peek('MinPay',0,'TempTable');&lt;BR /&gt;SET vMin='1';&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;Final:&lt;BR /&gt;LOAD&lt;BR /&gt;'$(vMax)' as MaxPay,&lt;BR /&gt;'$(vMinPay)' as MinPay,&lt;BR /&gt;projet,&lt;BR /&gt;//invest,&lt;BR /&gt;CashFlow,&lt;BR /&gt;payment,&lt;BR /&gt;[Number-of- payment]&lt;BR /&gt;Resident Payments;&lt;/P&gt;&lt;P&gt;Left Join&lt;BR /&gt;LOAD&lt;BR /&gt;(IterNo()+$(vMin)-1) as Pagos&lt;BR /&gt;AutoGenerate 1 While IterNo()+$(vMin)-1&amp;lt;=$(vMax);&lt;/P&gt;&lt;P&gt;DROP Table TempTable;&lt;BR /&gt;DROP Table Payments;&lt;BR /&gt;STORE Final into $(Data)Payments.qvd(QVD);&lt;BR /&gt;DROP Table Final;&lt;/P&gt;&lt;P&gt;Payments:&lt;BR /&gt;LOAD&lt;BR /&gt;projet,&lt;BR /&gt;invest as CashFlow,&lt;BR /&gt;invest&lt;BR /&gt;FROM [$(Data)Libro.xlsx](ooxml, embedded labels, table is Hoja4);&lt;/P&gt;&lt;P&gt;Concatenate&lt;BR /&gt;LOAD&lt;BR /&gt;MaxPay,&lt;BR /&gt;MinPay,&lt;BR /&gt;projet,&lt;BR /&gt;CashFlow,&lt;BR /&gt;payment,&lt;BR /&gt;[Number-of- payment],&lt;BR /&gt;Pagos&lt;BR /&gt;FROM [$(Data)Payments.qvd] (qvd) Where Pagos&amp;lt;=[Number-of- payment] ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let me know if the solution helped you&lt;/P&gt;</description>
      <pubDate>Sun, 03 Feb 2019 19:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IRR-fuction/m-p/1538855#M746754</guid>
      <dc:creator>tincholiver</dc:creator>
      <dc:date>2019-02-03T19:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: IRR fuction</title>
      <link>https://community.qlik.com/t5/QlikView/IRR-fuction/m-p/1539105#M746756</link>
      <description>Hi Tincholiver,&lt;BR /&gt;Yes the solution is working perfectly, Thank you very much for your help.&lt;BR /&gt;if I want to calculate this IRR for table with 126 000 client, I think it s gonna take a lot of memory and time.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Feb 2019 13:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IRR-fuction/m-p/1539105#M746756</guid>
      <dc:creator>Jamal</dc:creator>
      <dc:date>2019-02-04T13:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: IRR fuction</title>
      <link>https://community.qlik.com/t5/QlikView/IRR-fuction/m-p/1539125#M746758</link>
      <description>&lt;P&gt;Hi Jamal, it shoudn't because the scrip just load data, not make complex calculation.&lt;/P&gt;&lt;P&gt;Actually I try in my machine with 100.000 and 200.000 records and works good.&lt;/P&gt;&lt;P&gt;If it seemed a good solution, could you mark it as resolved so we can use it in furute cases?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IRR Solution 2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5147iFAA6F837D30ECB5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="IRR Solution 2.png" alt="IRR Solution 2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IRR Solution.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5146iF25C97606BE833A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="IRR Solution.png" alt="IRR Solution.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IRR Solution 3.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5149i3CD9EF2CC067719A/image-size/large?v=v2&amp;amp;px=999" role="button" title="IRR Solution 3.png" alt="IRR Solution 3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 14:12:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IRR-fuction/m-p/1539125#M746758</guid>
      <dc:creator>tincholiver</dc:creator>
      <dc:date>2019-02-04T14:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: IRR fuction</title>
      <link>https://community.qlik.com/t5/QlikView/IRR-fuction/m-p/1539195#M746761</link>
      <description>Hi Bro,&lt;BR /&gt;&lt;BR /&gt;Ok, thank you very much. I appreciate your help.</description>
      <pubDate>Mon, 04 Feb 2019 16:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IRR-fuction/m-p/1539195#M746761</guid>
      <dc:creator>Jamal</dc:creator>
      <dc:date>2019-02-04T16:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: IRR fuction</title>
      <link>https://community.qlik.com/t5/QlikView/IRR-fuction/m-p/1539215#M746763</link>
      <description>your are welcome.&lt;BR /&gt;Regards.&lt;BR /&gt;&lt;BR /&gt;Wicham..</description>
      <pubDate>Mon, 04 Feb 2019 16:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IRR-fuction/m-p/1539215#M746763</guid>
      <dc:creator>tincholiver</dc:creator>
      <dc:date>2019-02-04T16:55:12Z</dc:date>
    </item>
  </channel>
</rss>

