<?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: Order of IRR payments in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082447#M360599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree its not perfect, but I thought to suggest it as a work-around. Because from my reading of the two, it seems the difference between the two options is that IRR assumes that payments are periodic where as XIRR can handle non-periodic payments. What I tried to do was making the non-periodic dates and create a periodic dates for each payment. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if you find a another work around, or a good solution here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Mar 2016 10:21:54 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-03-16T10:21:54Z</dc:date>
    <item>
      <title>Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082440#M360592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm struggling to get an IRR() calc to work correctly. I have a payment row for each month, and the data table is sorted by month. I'm doing something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IRR(Debit + Credit + Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get an incorrect result because it appears the IRR is not processing the payments in the month order, but rather in load order of the values. I can confirm that by generating the list of payments&amp;nbsp; using concat() as input to a RangeIRR function. That gives the correct result if I sort the list by month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone encounter this and have a workaround?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 21:42:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082440#M360592</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-03-15T21:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082441#M360593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob, I have never used IRR in QV before and I don't know if I will be able to offer any help or not, but if you have a small sample to look at, I can def. spend some time looking at it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 22:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082441#M360593</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-15T22:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082442#M360594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I didn't have used that function either and I don't have a QV12 here to test but.. can the new sort option for aggr give a help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like: IRR(Aggr(Sum(Value), (DateField(Numeric, ascending))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4673"&gt;The sortable Aggr function is finally here!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 22:16:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082442#M360594</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-03-15T22:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082443#M360595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just tried with Aggr() function, it isn't working for some reason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 22:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082443#M360595</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-15T22:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082444#M360596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob the closest I was able to get was this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=XIRR(Payments, Aggr(YearStart(Min(TOTAL Date), RowNo()), (Date, (NUMERIC))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives 16.33% whereas help says that it should be 16.34% (&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/FinancialAggregationFunctionsInCharts/irr.htm?q=IRR" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/FinancialAggregationFunctionsInCharts/irr.htm?q=IRR"&gt;IRR - chart function ‒ QlikView&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the order of the payments from the sample in help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cashflow:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD 2013 as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date|Discount|Payments&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2013-01-01|0.1|-10000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;2013-10-30|0.1|4200&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;2013-03-01|0.1|3000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2014-02-01|0.2|6800&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;] (delimiter is '|');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just using the straight IRR gives 17.15%&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 23:29:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082444#M360596</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-15T23:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082445#M360597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems like the sortable aggr() would be the trick, but it's not returning the right results. It looks like the sort only works within the aggr, and that the aggr does not actually return sorted results to the outside aggregation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, &lt;/P&gt;&lt;P&gt;concat(aggr(sum(x),(y(ASCENDING))))&lt;/P&gt;&lt;P&gt;does not return a concatenation sorted by y, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 03:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082445#M360597</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-03-16T03:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082446#M360598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the sample Sunny. I can't use XIRR because it uses a slightly different algorithm than IRR, and my results must exactly match an IRR calculation. It's a good sample to work with though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 04:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082446#M360598</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-03-16T04:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082447#M360599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree its not perfect, but I thought to suggest it as a work-around. Because from my reading of the two, it seems the difference between the two options is that IRR assumes that payments are periodic where as XIRR can handle non-periodic payments. What I tried to do was making the non-periodic dates and create a periodic dates for each payment. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if you find a another work around, or a good solution here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 10:21:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082447#M360599</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-16T10:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082448#M360600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;It seems like the sortable aggr() would be the trick, but it's not returning the right results. It looks like the sort only works within the aggr, and that the aggr does not actually return sorted results to the outside aggregation?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;For example,&lt;/P&gt;
&lt;P&gt;concat(aggr(sum(x),(y(ASCENDING))))&lt;/P&gt;
&lt;P&gt;does not return a concatenation sorted by y,&lt;/P&gt;
&lt;P style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;won't the Concat() function re-sort the values anyway depending on sort weight or text order?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concerning your original issue, could you detail on your assumption that load order of values comes into play?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to reproduce (on QV11.20 SR10 X64) using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;RAND:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RAND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()*21)-11 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Payment&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AutoGenerate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 100;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; Payment&lt;BR /&gt; -1&lt;BR /&gt; 3&lt;BR /&gt; 1&lt;BR /&gt; 2&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;DROP&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TABLE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; RAND; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This does change load order of Payment values on each reload. But Irr(Payment) in a text box keeps constant (2.4567, in consistency with Excel).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Stefan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 10:55:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082448#M360600</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-16T10:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082449#M360601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure how it's working in QV11.20 + I have not tested the same in QV12. But if we think about it outside of logic, don't you think that the order of payments should impact IRR. A bigger payment received earlier would have a higher NPV compared to a smaller payment. On the same logic I would assume that a bigger payment received earlier should also have a lower IRR and vice versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to give your script a shot in QV12 and see what I get and respond back to all &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 11:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082449#M360601</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-16T11:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082450#M360602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I can follow, Sunny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was talking about load order of Payment values doesn't seem to have an Impact, not about the order of records. This for sure should have an impact (and it does).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 12:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082450#M360602</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-16T12:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082451#M360603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have observed something else:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding a line to my above sample with an already existing Payment value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Payment&lt;BR /&gt; -1&lt;BR /&gt; 3&lt;BR /&gt; 1&lt;BR /&gt; 2&lt;BR /&gt; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and IRR(Payment) returns NULL.&lt;/P&gt;&lt;P&gt;Removing the code for the random load order, the function returns 2.4267, but the RangeIRR() function and excel return 2.4769.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 12:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082451#M360603</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-16T12:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082452#M360604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what the exact issue is, but I think what Rob is saying is that the payments need to be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date, Payments&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;01/01/2014, -10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;01/01/2015, 5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;01/01/2016, 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;01/01.2017, 6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if they are loaded like this:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Date, Payments&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;01/01/2014, -10&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;01/01/2016, 4&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;01/01/2015, 5&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;01/01.2017, 6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for some reason, the IRR isn't consistent. I am not sure how to add the Rand table in this case for testing. But can you test what IRR do you get in this case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 12:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082452#M360604</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-16T12:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082453#M360605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe IRR isn't looking at the dates, it's assuming equi-distant time of cash flow .&lt;/P&gt;&lt;P&gt;The sequence of Payments is different in your example, so IRR will differ: 0.2257 vs. 0.2165&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 13:05:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082453#M360605</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-16T13:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082454#M360606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, and I believe what Rob is struggling with is the fact that although IRR is not dependent on the sequence of payments, but in reality they do follow a schedule. 01/01/2015 payment needs come before 01/01/2016 payment when the IRR calculation is done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 13:09:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082454#M360606</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-16T13:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082455#M360607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be I am completely wrong, but I think based on the sample I provided, Rob is looking to get 0.2257 regardless of how the dates (and payments are sorted) and closest I was able to get was using this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=XIRR(TOTAL Payment, Aggr(YearStart(Min(TOTAL Date), RowNo()), (Date, (NUMERIC))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above expression gives &lt;STRONG&gt;0.2255 &lt;/STRONG&gt;regardless of how the data is sorted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/118242_Capture.PNG" style="height: 248px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 13:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082455#M360607</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-16T13:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082456#M360608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;as far as I understood, Rob has created the data table sorted chronological, so we would expect it to work with IRR(). It seems it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question from prev post was if there is some more evidence that the load order plays a role.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently believe that (solely the) load order doesn't play a role, but if the data table Show duplicate cash flow values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Payment&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;recno&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; Payment&lt;BR /&gt; -10&lt;BR /&gt; 4&lt;BR /&gt; 5&lt;BR /&gt; 6&lt;BR /&gt; 5&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;will produce different results using IRR() in QlikView compared to RangeIRR() / Excel&amp;nbsp; (0.3229 vs 0.3290)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If you add a very small number to each Payment to make them distinct, the results are getting consistent again:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Payment&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;+1E-14*&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;recno&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Payment2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Payment&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;recno&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; Payment&lt;BR /&gt; -10&lt;BR /&gt; 4&lt;BR /&gt; 5&lt;BR /&gt; 6&lt;BR /&gt; 5&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 14:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082456#M360608</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-16T14:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082457#M360609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Sunny T &amp;amp;lt;span class=&amp;amp;quot;icon-status-icon icon-mvp&amp;amp;quot; title=&amp;amp;quot;Mvp&amp;amp;quot;&amp;amp;gt;&amp;amp;lt;/span&amp;amp;gt; wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Rob the closest I was able to get was this:&lt;/P&gt;
&lt;P style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=XIRR(Payments, Aggr(YearStart(Min(TOTAL Date), RowNo()), (Date, (NUMERIC))))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;
&lt;P&gt;This gives 16.33% whereas help says that it should be 16.34% (&lt;A class="jive-link-external-small" href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/FinancialAggregationFunctionsInCharts/irr.htm?q=IRR" rel="nofollow" target="_blank"&gt;IRR - chart function ‒ QlikView&lt;/A&gt;)&lt;/P&gt;
&lt;P style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;
&lt;P&gt;I changed the order of the payments from the sample in help&lt;/P&gt;
&lt;P style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cashflow:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;LOAD 2013 as Year,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; *&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Inline [&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Date|Discount|Payments&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2013-01-01|0.1|-10000&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;2013-10-30|0.1|4200&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;2013-03-01|0.1|3000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2014-02-01|0.2|6800&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;] (delimiter is '|');&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;
&lt;P&gt;Just using the straight IRR gives 17.15%&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;I believe Qlik / MS Excel uses a 365 day year. So if you want to mimic IRR with XIRR, I think you would need to use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;XIRR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Payments&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Makedate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(2000)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rowno&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;()*365&lt;/STRONG&gt;, &lt;STRONG&gt;(Date, (NUMERIC))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The start year is pretty arbitrary. Worked for me on QV11.20 without the aggr() StructuredParameter (so I used correct table record sorting).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 15:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082457#M360609</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-16T15:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082458#M360610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uses 365 days for IRR you mean?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 15:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082458#M360610</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-16T15:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Order of IRR payments</title>
      <link>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082459#M360611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup, you are right, that seems to do it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a little different expression, but the idea is the same:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=XIRR(TOTAL Payment, Aggr(YearStart(Min(TOTAL Date))+ (RowNo()*365), (Date, (NUMERIC))))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 15:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-of-IRR-payments/m-p/1082459#M360611</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-16T15:27:36Z</dc:date>
    </item>
  </channel>
</rss>

