<?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 Last 12 Months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-12-Months/m-p/552639#M206441</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;Need to show last 12 months of data based on existing date filed. How can i achive this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jul 2013 19:01:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-08T19:01:06Z</dc:date>
    <item>
      <title>Last 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-Months/m-p/552639#M206441</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;Need to show last 12 months of data based on existing date filed. How can i achive this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 19:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-Months/m-p/552639#M206441</guid>
      <dc:creator />
      <dc:date>2013-07-08T19:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-Months/m-p/552640#M206442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='QTY= ' &amp;amp; sum({&amp;lt;Trans_Date={'&amp;gt;=$(=MonthStart(Max(Trans_Date), -11))&amp;lt;=$(=Max(Trans_Date))'}&amp;gt;}QTY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create variable with vMaxDate = Max(Trans_Date) and then use below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='QTY= ' &amp;amp; sum({&amp;lt;Trans_Date={'&amp;gt;=$(=MonthStart(vMaxDate, -11))&amp;lt;=$(=vMaxDate)'}&amp;gt;}QTY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 19:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-Months/m-p/552640#M206442</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-07-08T19:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-Months/m-p/552641#M206443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to load last 12 months of data while loading the data in the script ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 18:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-Months/m-p/552641#M206443</guid>
      <dc:creator />
      <dc:date>2013-07-09T18:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-Months/m-p/552642#M206444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use script below to reduce last 12 months in script level&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataTemp:&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD Max(Trans_Date) AS MaxDate&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Last12Months.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vMaxDate = Peek('MaxDate');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD Trans_Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QTY&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Last12Months.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;where Trans_Date &amp;gt;= AddMonths($(vMaxDate), -12) AND Trans_Date &amp;lt;= $(vMaxDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 19:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-Months/m-p/552642#M206444</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-07-09T19:14:43Z</dc:date>
    </item>
  </channel>
</rss>

