<?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 Past 12 Months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-Past-12-Months/m-p/566985#M685898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope it will change every day instead of every month &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jan 2014 19:33:13 GMT</pubDate>
    <dc:creator>dseelam</dc:creator>
    <dc:date>2014-01-24T19:33:13Z</dc:date>
    <item>
      <title>Rolling Past 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Past-12-Months/m-p/566983#M685896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello Every One&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The below statement working perfectly alright but does the past 12 months will be changing daily once the script is reloaded ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; Let vMin = num(Makedate(2011,01,01));&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; Let vMax = num(today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; Temp:&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date($(vMin) + Iterno() -1) as Date&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autogenerate 1&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; While Date($(vMin)) + Iterno() -1 &amp;lt;= $(vMax);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MasterCal:&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load Date,&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(Date) as month,&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(Date) as Year&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Drop table Temp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 19:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Past-12-Months/m-p/566983#M685896</guid>
      <dc:creator>dseelam</dc:creator>
      <dc:date>2014-01-24T19:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Past 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Past-12-Months/m-p/566984#M685897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Dinesh,&lt;/P&gt;&lt;P&gt;Rolling past 12 months will always be changing as time progresses.&lt;/P&gt;&lt;P&gt;Say today past 12 months will be Jan 2013 - Jan 2014&lt;/P&gt;&lt;P&gt;When you are in Feb it should be Feb 2013 - Feb 2014&lt;/P&gt;&lt;P&gt;If you want to do that you can change vMin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; Let vMin =&amp;nbsp; num( Addmonths(Today(),-12)) ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope it helps &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;AJ&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 19:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Past-12-Months/m-p/566984#M685897</guid>
      <dc:creator />
      <dc:date>2014-01-24T19:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Past 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Past-12-Months/m-p/566985#M685898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope it will change every day instead of every month &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 19:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Past-12-Months/m-p/566985#M685898</guid>
      <dc:creator>dseelam</dc:creator>
      <dc:date>2014-01-24T19:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Past 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Past-12-Months/m-p/566986#M685899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dinesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Script create this Field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(TempDate&amp;gt;=monthstart(AddMonths($(vToday), -12)) AND TempDate&amp;lt;monthstart($(vToday)), 1, 0) as Rolling12MthFlag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create an variable vToday which has value of your Today Date or your Table's Max Date as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating the Above field in your Script now create a Chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg. Line Chart - Your Dimension would be&amp;nbsp; : Month_Year Field&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Your Expression would be : sum({$ &amp;lt;Rolling12MthFlag={1}&amp;gt;} SalesAmount)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Hope this works for you.&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;Aviral Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 19:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Past-12-Months/m-p/566986#M685899</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-01-24T19:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Past 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Past-12-Months/m-p/566987#M685900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry should have explained better. It will change everyday as we are subtracting 12 months from today.&lt;/P&gt;&lt;P&gt;so today it will be&amp;nbsp;&amp;nbsp; 01/24/2013 to 01/24/2014 and&lt;/P&gt;&lt;P&gt;tomorrow&amp;nbsp;&amp;nbsp; 01/25/2013 to 01/25/2014&amp;nbsp; and so on as long as the app gets reloaded daily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 19:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Past-12-Months/m-p/566987#M685900</guid>
      <dc:creator />
      <dc:date>2014-01-24T19:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Past 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Past-12-Months/m-p/566988#M685901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;STRONG&gt;MonthStart&lt;/STRONG&gt; function if you need to reset the value to 1st of month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 23:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Past-12-Months/m-p/566988#M685901</guid>
      <dc:creator />
      <dc:date>2014-01-24T23:10:39Z</dc:date>
    </item>
  </channel>
</rss>

