<?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: Static 'to' Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Static-to-Date/m-p/627740#M678079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;12*(2014 - year("HistoricDate")) + 3 - num(Month("HistoricDate"))&amp;nbsp; as&amp;nbsp; MonthsAgo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 May 2014 09:30:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-26T09:30:48Z</dc:date>
    <item>
      <title>Static 'to' Date</title>
      <link>https://community.qlik.com/t5/QlikView/Static-to-Date/m-p/627739#M678078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks in advance for your help on this topic...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My objective is to create a script entry to calculate from historical dates to a set period in time which in this instance is static 31/3/2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script currently calculates the historical date to today to give me a 'MonthsAgo' amount like:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;12*Year(today()) - year("HistoricDate")) + Month(Today()) - Month("HistoricDate")&amp;nbsp; as&amp;nbsp; MonthsAgo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried multiple combinations of the above replacing Year(today()) with '31/3/2014' which isn't returning the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas where I am going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 09:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-to-Date/m-p/627739#M678078</guid>
      <dc:creator>pauledrich</dc:creator>
      <dc:date>2014-05-26T09:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Static 'to' Date</title>
      <link>https://community.qlik.com/t5/QlikView/Static-to-Date/m-p/627740#M678079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;12*(2014 - year("HistoricDate")) + 3 - num(Month("HistoricDate"))&amp;nbsp; as&amp;nbsp; MonthsAgo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 09:30:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-to-Date/m-p/627740#M678079</guid>
      <dc:creator />
      <dc:date>2014-05-26T09:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Static 'to' Date</title>
      <link>https://community.qlik.com/t5/QlikView/Static-to-Date/m-p/627741#M678080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You - works perfectly and logical.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 09:43:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-to-Date/m-p/627741#M678080</guid>
      <dc:creator>pauledrich</dc:creator>
      <dc:date>2014-05-26T09:43:32Z</dc:date>
    </item>
  </channel>
</rss>

