<?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: Help with XIRR in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-XIRR/m-p/892447#M310779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;I found solution! &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For calculate aggregations in XIRR i needed a final aggregation with Sum and Total. I never needed do this aggregation level, but this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;XIRR(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;//Payments&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; if([nPer]=0, (Sum(Total Aggr(Sum(Total &amp;lt;Group&amp;gt; [Metric]),Group) ) * -1) , &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Sum(Total Aggr(Sum(Total &amp;lt;Group&amp;gt; [Metric]),Group) )&amp;nbsp; / PmtFactor)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;//Dates&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; if(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;[nPer]&lt;/SPAN&gt;&amp;lt;=72 , [Date])&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2015 14:14:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-03T14:14:11Z</dc:date>
    <item>
      <title>Help with XIRR</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-XIRR/m-p/892444#M310776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView has a formula to calculate the XIRR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula basically calculates payments cashflow based on periods and returns internal rate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In a basic example:&lt;/STRONG&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;xirr( Payments, Dates )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But I need to use an aggregation of payments cashflow, like the example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;xirr( total &amp;lt;Grp&amp;gt; Sum(total &amp;lt;Grp&amp;gt; Payments), Dates)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Then Help QlikView says:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN class="Italic" style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;&lt;EM&gt;Valueexpression&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;&lt;EM&gt; &lt;/EM&gt;and &lt;SPAN class="Italic"&gt;&lt;EM&gt;dateexpression&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt; &lt;/EM&gt;must not contain aggregation functions, unless these inner aggregations contain the &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; qualifier. For more advanced nested aggregations, please use the &lt;A class="xref_1"&gt;&lt;EM&gt;Advanced Aggregation&lt;/EM&gt;&lt;/A&gt; function in combination with calculated dimensions, see &lt;A class="xref_1"&gt;&lt;EM&gt;Add calculated dimension... &lt;/EM&gt;&lt;/A&gt;. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;If the word &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; occurs before the function arguments the calculation will be made over all possible values given the current selections but disregarding the chart dimension variables. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;The &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; qualifier may be followed by a list of one or more field names within angle brackets. These field names should be a subset of the chart dimension variables. In this case the calculation will be made disregarding all chart dimension variables except those listed, i.e. one value will be returned for each combination of field values in the listed dimension fields. Also fields which are not currently a dimension in a chart may be included in the list. This may be useful in the case of group dimensions, where the dimension fields are not fixed. Listing all of the variables in the group causes the function to work when the cycle or drill-down level changes. &lt;/SPAN&gt;&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;It makes perfect sense, but in practice doesn't works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Has anyone used this formula using aggregation?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 22:00:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-XIRR/m-p/892444#M310776</guid>
      <dc:creator />
      <dc:date>2015-06-01T22:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with XIRR</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-XIRR/m-p/892445#M310777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't used that formula, but you need to use an aggr for your sum to work properly &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3857"&gt;QlikView Technical Brief - AGGR.docx&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 23:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-XIRR/m-p/892445#M310777</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-06-01T23:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with XIRR</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-XIRR/m-p/892446#M310778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post your expression/app and desired output...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 05:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-XIRR/m-p/892446#M310778</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-06-02T05:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with XIRR</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-XIRR/m-p/892447#M310779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;I found solution! &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For calculate aggregations in XIRR i needed a final aggregation with Sum and Total. I never needed do this aggregation level, but this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;XIRR(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;//Payments&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; if([nPer]=0, (Sum(Total Aggr(Sum(Total &amp;lt;Group&amp;gt; [Metric]),Group) ) * -1) , &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Sum(Total Aggr(Sum(Total &amp;lt;Group&amp;gt; [Metric]),Group) )&amp;nbsp; / PmtFactor)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;//Dates&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; if(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;[nPer]&lt;/SPAN&gt;&amp;lt;=72 , [Date])&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-XIRR/m-p/892447#M310779</guid>
      <dc:creator />
      <dc:date>2015-06-03T14:14:11Z</dc:date>
    </item>
  </channel>
</rss>

