<?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: Need 2 Date Ranges for XIRR calc - Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-2-Date-Ranges-for-XIRR-calc-Help/m-p/1023909#M346159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the sample expression. I will play around with the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Feb 2016 18:42:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-02T18:42:36Z</dc:date>
    <item>
      <title>Need 2 Date Ranges for XIRR calc - Help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-2-Date-Ranges-for-XIRR-calc-Help/m-p/1023907#M346157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Calibri;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;I’ve been struggle to calculate XIRR with couple date range selection. In current process, I calculate inception to date base on the transaction date and cash flow and it works fine. I wanted to tweet it a bit to add 2 selection dates where user can define. &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;To calculate XIRR, the first cost/payment needs to be a negative. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;What I want to accomplish: – 2 Date selection objects&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Need to take Date selection # 1 prior date “CashFlow” value and turn into negative for XIRR calculation.&lt;/LI&gt;&lt;LI&gt;This will serve as my staring point first cost/payment&lt;P&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;For Example: If I want to check the XIRR % from 1/1/2015 – 9/30/2015 (base on “Reporting_Date”)&lt;/SPAN&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;#1 –select Date Range 1/1/2015 base on “Reporting_Date”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;#1_a – as I said above regards to negative. I need 12/31/2014 where Flow Type = EMV as my starting point and this value needs to be negative (-1,100,000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;#2 –select Date Range 9/30/2015 base on “Reporting_Date”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;#3- XIRR Caculation - xirr(CashFlow, Transaction_Date)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Any help will greatly appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Thank You,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Frank&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 16:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-2-Date-Ranges-for-XIRR-calc-Help/m-p/1023907#M346157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-01T16:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need 2 Date Ranges for XIRR calc - Help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-2-Date-Ranges-for-XIRR-calc-Help/m-p/1023908#M346158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think you need to look on the expression with aggregation. Not sure, But you can try something like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=XIRR(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(If(RowNo(TOTAL)=1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;FlowType={'EMV'}&amp;gt;}CashFlow)*-1,Sum(CashFlow)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Transaction_Date,Company),Transaction_Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You just play with the expression, based on your need..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 03:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-2-Date-Ranges-for-XIRR-calc-Help/m-p/1023908#M346158</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-02-02T03:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need 2 Date Ranges for XIRR calc - Help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-2-Date-Ranges-for-XIRR-calc-Help/m-p/1023909#M346159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the sample expression. I will play around with the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 18:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-2-Date-Ranges-for-XIRR-calc-Help/m-p/1023909#M346159</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-02T18:42:36Z</dc:date>
    </item>
  </channel>
</rss>

