<?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 Vs Previous in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-Vs-Previous/m-p/60337#M781290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt; Month=, Date={"&amp;gt;=$(=MonthStart(today(), -11))&amp;lt;=$(=(today()))"}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2018 10:57:39 GMT</pubDate>
    <dc:creator>vishweshwarisun</dc:creator>
    <dc:date>2018-04-05T10:57:39Z</dc:date>
    <item>
      <title>Rolling Vs Previous</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Vs-Previous/m-p/60336#M781289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have posted a query w.r.t this topic already, but still unable to differentiate between these 2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex Scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data for 2015,2016,2017 (Jan till Dec for all years).&amp;nbsp; i need to compare in a bar chart the Rolling12 months sales to Previous12months sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For rolling12 months i used the below in expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;&lt;STRONG style="font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: bold; border-color: #3d3d3d; border-style: none;"&gt;=Sum({&amp;lt;Date={"$(='&amp;gt;=' &amp;amp; Date(MonthStart(Max(Date), -13)) &amp;amp; '&amp;lt;' &amp;amp; Date(MonthStart(Max(Date))))"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;&lt;STRONG style="font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: bold; border-color: #3d3d3d; border-style: none;"&gt;or &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;PeriodID = {"&amp;gt;=$(=Max(PeriodID)-11)&amp;lt;=$(=Max(PeriodID))"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt; This is resulting in Rolling 12 months. Like 2017 Jan Till Dec sales.&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;If i want to calculate the previous12 months will it be like : present month April 2018 back 12 months which is May 2017 Till April 2018, is my assumption correct or not?&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;Can any one please suggest a code to calculate previous12months, i worked out with almost all links provided in community, i can see Rolling12months but not Previous12months.&amp;nbsp; &lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;Can i get a response on my scenario please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Vs-Previous/m-p/60336#M781289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Vs Previous</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Vs-Previous/m-p/60337#M781290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt; Month=, Date={"&amp;gt;=$(=MonthStart(today(), -11))&amp;lt;=$(=(today()))"}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 10:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Vs-Previous/m-p/60337#M781290</guid>
      <dc:creator>vishweshwarisun</dc:creator>
      <dc:date>2018-04-05T10:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Vs Previous</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Vs-Previous/m-p/60338#M781291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest you to look into &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt; and I think &lt;A href="https://community.qlik.com/qlik-users/120618"&gt;mrkachhiaimp&lt;/A&gt;‌ have already showed a demonstration of the same here &lt;A href="https://community.qlik.com/thread/297180"&gt;Previous12 and Rolling12&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 11:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Vs-Previous/m-p/60338#M781291</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-05T11:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Vs Previous</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Vs-Previous/m-p/60339#M781292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny, nice reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 14:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Vs-Previous/m-p/60339#M781292</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-05T14:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Vs Previous</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Vs-Previous/m-p/60340#M781293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishveswari,&lt;/P&gt;&lt;P&gt;I tried that, but in my case i should not be using Today(), as i have no data for 2018, i worked out by creating Flags in the backend script and seems to be working alright, thank you very much for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 15:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Vs-Previous/m-p/60340#M781293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-05T15:37:52Z</dc:date>
    </item>
  </channel>
</rss>

