<?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: Point in Time comparisons with future dates in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Point-in-Time-comparisons-with-future-dates/m-p/1134535#M19967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use an As-Of table that includes future dates. See this document for an example of the As-Of table concept: &lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jul 2016 08:26:10 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-07-25T08:26:10Z</dc:date>
    <item>
      <title>Point in Time comparisons with future dates</title>
      <link>https://community.qlik.com/t5/App-Development/Point-in-Time-comparisons-with-future-dates/m-p/1134534#M19966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, we restrict the Calendar to Maximum date of the fact data.&lt;/P&gt;&lt;P&gt;I have a requirement to calculate YTD, MTD, Prev YTD, MTD dynamically the following way which will have future dates as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Calendar data is coming from the source DB and it will have dates in future. Eg: If current date is 25-Jul-2016, Calendar can have 31-12-2017 as Max Date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Future dates are needed for budgeting purpose&lt;/P&gt;&lt;P&gt;2) Fact will always have the history data.&lt;/P&gt;&lt;P&gt;3) The YTD, MTD should be defaulted to the most recent fact data when an App is opened ( i.e. when no selection is made) and Prev YTD and Prev should be offset accordingly.&lt;/P&gt;&lt;P&gt;4) If the user makes any selection ( be it a date of the past or of the future), the values should be calculated for that period till the Maximum of the selected date.&lt;/P&gt;&lt;P&gt;Eg: If the user selects 21-05-2015 and 25-06-2015,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; then YTD should be calculated from 1-Jan-2015 to 25-06-2015.&lt;/P&gt;&lt;P&gt;&amp;nbsp; MTD should be&amp;nbsp; from 1-Jun-2015 to 25-06-2015.&lt;/P&gt;&lt;P&gt;5) Similarily, the user makes a selection in future, then the behaviour should be as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If the user selects 21-05-2017,&lt;/P&gt;&lt;P&gt;&amp;nbsp; then YTD will be 0 since there are no measures/facts, Prev YTD should be calculated from 1-01-2016 to 21-05-2016&lt;/P&gt;&lt;P&gt;&amp;nbsp; MTD will be 0, Prev MTD should be calculated from 1-05-2015 to 21-05-2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions to implement this requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mahi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2016 06:56:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Point-in-Time-comparisons-with-future-dates/m-p/1134534#M19966</guid>
      <dc:creator />
      <dc:date>2016-07-25T06:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Point in Time comparisons with future dates</title>
      <link>https://community.qlik.com/t5/App-Development/Point-in-Time-comparisons-with-future-dates/m-p/1134535#M19967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use an As-Of table that includes future dates. See this document for an example of the As-Of table concept: &lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2016 08:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Point-in-Time-comparisons-with-future-dates/m-p/1134535#M19967</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-25T08:26:10Z</dc:date>
    </item>
  </channel>
</rss>

