<?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: Rolling 12 months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-12-months/m-p/378525#M572287</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;Please find the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Som&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Aug 2012 09:23:53 GMT</pubDate>
    <dc:creator>somenathroy</dc:creator>
    <dc:date>2012-08-17T09:23:53Z</dc:date>
    <item>
      <title>Rolling 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-months/m-p/378518#M572280</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;I have a code that is supposed to show rolling 12 months based on selected period.&lt;/P&gt;&lt;P&gt;example. Choose 201206 and the line graph should display from 201206 and 12 months back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;KVGruppe2={'%Rent'}&amp;gt;}{&amp;lt;Period ={"&amp;gt;=$(=addmonths(Max(Period), -12)) &amp;lt;=$(=addmonths(Max(Period), 0,&amp;nbsp; 'YYYYMM'))"} &amp;gt;}OutOfOuterLimit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try this it goes all the way back to 200901.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to set dimmension to =if(period &amp;lt;StartPeriod, period)&lt;/P&gt;&lt;P&gt;StartPeriod is allways period -12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone see why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited: Added an example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 13:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-months/m-p/378518#M572280</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-16T13:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-months/m-p/378519#M572281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it'll be better if you will send small sample app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 13:36:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-months/m-p/378519#M572281</guid>
      <dc:creator />
      <dc:date>2012-08-16T13:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-months/m-p/378520#M572282</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;I have created a test that shows what I am trying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 07:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-months/m-p/378520#M572282</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-17T07:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-months/m-p/378521#M572283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the Sample App..&lt;/P&gt;&lt;P&gt;Hope iit helps!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 07:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-months/m-p/378521#M572283</guid>
      <dc:creator>rajni_batra</dc:creator>
      <dc:date>2012-08-17T07:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-months/m-p/378522#M572284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to alter my test app to suit your sample. Created two variables, but I still do not get it to do as needed.&lt;/P&gt;&lt;P&gt;I get it to start at my selected period, but it does not end at -12 months. It goes all the way back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code and my code(the original one) seems to do the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 08:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-months/m-p/378522#M572284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-17T08:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-months/m-p/378523#M572285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the problem is ur max(period) is giving out the result 201009, which is assumed as number of date so when i change it into date it gives &lt;STRONG&gt;04-05-2450 &lt;/STRONG&gt;as Output,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(max(Period),'DD-MM-YYYY') returns 04-05-2450&lt;/P&gt;&lt;P&gt;AddMonths(max(Period),-1) returns&amp;nbsp; 04-04-2450&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should take some other field for selection &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 08:51:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-months/m-p/378523#M572285</guid>
      <dc:creator>rajni_batra</dc:creator>
      <dc:date>2012-08-17T08:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-months/m-p/378524#M572286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or you can use makedate(split the period field in year, month,day)&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 09:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-months/m-p/378524#M572286</guid>
      <dc:creator>rajni_batra</dc:creator>
      <dc:date>2012-08-17T09:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-months/m-p/378525#M572287</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;Please find the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Som&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 09:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-months/m-p/378525#M572287</guid>
      <dc:creator>somenathroy</dc:creator>
      <dc:date>2012-08-17T09:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-months/m-p/378526#M572288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Code and Rajni code is same but &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rajni code that dimension is date format and your code is string format first change that code string to date then u can try, it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 09:25:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-months/m-p/378526#M572288</guid>
      <dc:creator />
      <dc:date>2012-08-17T09:25:10Z</dc:date>
    </item>
  </channel>
</rss>

