<?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: Last 13 Months Rolling in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-13-Months-Rolling/m-p/1007213#M342002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have not tried this, but may be give this a try:&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; font-size: 13px;"&gt;vRolling13Months = '{1&amp;lt;Date ={"&amp;gt;=' &amp;amp;date(addmonths(vMaxDateCalculated,-13)+1) &amp;amp; '&amp;lt;=' &amp;amp; vMaxDateCalculated &amp;amp; '"}'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;1) Sum($(vRolling13Months)&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;2) &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sum($(vRolling13Months)*{$&amp;lt;Region ={'USA'}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/SPAN&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; font-size: 13px;"&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; font-size: 13px;"&gt;May give you syntax error, but might just work&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; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Sep 2015 20:50:47 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-09-09T20:50:47Z</dc:date>
    <item>
      <title>Last 13 Months Rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Last-13-Months-Rolling/m-p/1007212#M342001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qliks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a variable for last 13 months (i.e; from 01/08/2014 to 31/08/2015) as current Month = Sep 2015.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMaxDateCalculated =Date(monthend(today(),-1))&lt;/P&gt;&lt;P&gt; vRolling13Months = '{1&amp;lt;Date ={"&amp;gt;=' &amp;amp;date(addmonths(vMaxDateCalculated,-13)+1) &amp;amp; '&amp;lt;=' &amp;amp; vMaxDateCalculated &amp;amp; '"}&amp;gt;}' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: Sum($(vRolling13Months)Sales) -- Giving me a right value&lt;/P&gt;&lt;P&gt;But I am unable to get desired result when I am trying to use the same variable with set analysis as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: &lt;SPAN style="font-size: 13.3333px;"&gt;Sum($(vRolling13Months){$&amp;lt;Region ={'USA'}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help me out with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 20:42:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-13-Months-Rolling/m-p/1007212#M342001</guid>
      <dc:creator>narband2778</dc:creator>
      <dc:date>2015-09-09T20:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Last 13 Months Rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Last-13-Months-Rolling/m-p/1007213#M342002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have not tried this, but may be give this a try:&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; font-size: 13px;"&gt;vRolling13Months = '{1&amp;lt;Date ={"&amp;gt;=' &amp;amp;date(addmonths(vMaxDateCalculated,-13)+1) &amp;amp; '&amp;lt;=' &amp;amp; vMaxDateCalculated &amp;amp; '"}'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;1) Sum($(vRolling13Months)&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;2) &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sum($(vRolling13Months)*{$&amp;lt;Region ={'USA'}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/SPAN&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; font-size: 13px;"&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; font-size: 13px;"&gt;May give you syntax error, but might just work&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; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 20:50:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-13-Months-Rolling/m-p/1007213#M342002</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-09T20:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Last 13 Months Rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Last-13-Months-Rolling/m-p/1007214#M342003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnaks Sunny, But didn't Work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 20:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-13-Months-Rolling/m-p/1007214#M342003</guid>
      <dc:creator>narband2778</dc:creator>
      <dc:date>2015-09-09T20:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Last 13 Months Rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Last-13-Months-Rolling/m-p/1007215#M342004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting syntax errors... but It is not showing up with desired values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 21:08:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-13-Months-Rolling/m-p/1007215#M342004</guid>
      <dc:creator>narband2778</dc:creator>
      <dc:date>2015-09-09T21:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Last 13 Months Rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Last-13-Months-Rolling/m-p/1007216#M342005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it showing any value at all?? or is it showing error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 21:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-13-Months-Rolling/m-p/1007216#M342005</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-09T21:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Last 13 Months Rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Last-13-Months-Rolling/m-p/1007217#M342006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is showing an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with the below with If statement and it worked but not with set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Sum($(vRolling13Months) if(Region ='USA', Sales))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Thanks,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Naresh&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 21:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-13-Months-Rolling/m-p/1007217#M342006</guid>
      <dc:creator>narband2778</dc:creator>
      <dc:date>2015-09-09T21:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Last 13 Months Rolling</title>
      <link>https://community.qlik.com/t5/QlikView/Last-13-Months-Rolling/m-p/1007218#M342007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes the problem is that you variable is closing the first set analysis statement with &amp;gt;} and you are then starting another one {&amp;lt; for region and I don't think you can have two separate set analysis statement for a single expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 21:19:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-13-Months-Rolling/m-p/1007218#M342007</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-09T21:19:13Z</dc:date>
    </item>
  </channel>
</rss>

