<?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 3 months in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-3-months-in-Script/m-p/1122838#M369923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try combination of sorting, peek and rangesum.&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RangeSum(Value, Peek(Value, -1), Peek(Value, -2))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as 3M_Cumulative&lt;/P&gt;&lt;P&gt;From Source&lt;/P&gt;&lt;P&gt;Order By Month;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Aug 2016 13:59:37 GMT</pubDate>
    <dc:creator>juraj_misina</dc:creator>
    <dc:date>2016-08-03T13:59:37Z</dc:date>
    <item>
      <title>Rolling 3 months in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-months-in-Script/m-p/1122835#M369920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need my script to only pull in data from the current month and the previous 2 months, how do i do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 13:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-months-in-Script/m-p/1122835#M369920</guid>
      <dc:creator>kevbrown</dc:creator>
      <dc:date>2016-08-03T13:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 months in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-months-in-Script/m-p/1122836#M369921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TempTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date(MonthStart(Today(), -2)) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate Today() - &lt;SPAN style="font-size: 13.3333px;"&gt;MonthStart(Today(), -2);&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FactTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD AllFields,&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; DateField&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Exists(Date, DateField);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 13:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-months-in-Script/m-p/1122836#M369921</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-03T13:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 months in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-months-in-Script/m-p/1122837#M369922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank sunny but that just gave me 01/06/2016&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 13:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-months-in-Script/m-p/1122837#M369922</guid>
      <dc:creator>kevbrown</dc:creator>
      <dc:date>2016-08-03T13:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 months in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-months-in-Script/m-p/1122838#M369923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try combination of sorting, peek and rangesum.&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RangeSum(Value, Peek(Value, -1), Peek(Value, -2))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as 3M_Cumulative&lt;/P&gt;&lt;P&gt;From Source&lt;/P&gt;&lt;P&gt;Order By Month;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 13:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-months-in-Script/m-p/1122838#M369923</guid>
      <dc:creator>juraj_misina</dc:creator>
      <dc:date>2016-08-03T13:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 months in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-months-in-Script/m-p/1122839#M369924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe use a where clause like:&lt;/P&gt;&lt;P&gt;where datefield &amp;gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;addmonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;monthstart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(today()),-2) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 14:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-months-in-Script/m-p/1122839#M369924</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-03T14:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 months in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-months-in-Script/m-p/1122840#M369925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just needed to be this - Where Date&amp;gt;=(MonthStart(Today(), -2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 14:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-months-in-Script/m-p/1122840#M369925</guid>
      <dc:creator>kevbrown</dc:creator>
      <dc:date>2016-08-03T14:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 months in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-months-in-Script/m-p/1122841#M369926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to use Where Exists if you are looking to do an optimized QVD load &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 14:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-months-in-Script/m-p/1122841#M369926</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-03T14:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 months in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-months-in-Script/m-p/1122842#M369927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, it's a fairly small load so should be ok but if it begins to slow I'll look to add it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 14:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-months-in-Script/m-p/1122842#M369927</guid>
      <dc:creator>kevbrown</dc:creator>
      <dc:date>2016-08-03T14:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 months in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-months-in-Script/m-p/1122843#M369928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds good &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 14:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-months-in-Script/m-p/1122843#M369928</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-03T14:15:14Z</dc:date>
    </item>
  </channel>
</rss>

