<?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 window comparision in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-window-comparision/m-p/1073323#M638566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even after using MonthSerial column in Set Analysis expression, I can't see the aggregated value of last 3 months when I select month name from MonthName column. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year=,Month=,MonthSerial={'&amp;gt;=$(Max(MonthSerial)-2)&amp;lt;=$(Max(MonthSerial))'}&amp;gt;}[Metric1])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Mar 2016 13:50:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-25T13:50:07Z</dc:date>
    <item>
      <title>Rolling window comparision</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-window-comparision/m-p/1073321#M638564</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 wanted to create a table which will compare the metrics value with current year/quarter, previous year/quarter and previous to previous quarter based on user selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer below screenshot which is created in Power-Pivot - &lt;/P&gt;&lt;P&gt; &lt;IMG alt="Emea.jpg" class="jive-image image-1" height="235" src="https://community.qlik.com/legacyfs/online/119398_Emea.jpg" style="height: 235px; width: 770.581px; float: none;" width="771" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User selection =&amp;gt; &lt;STRONG&gt;Calendar Year = 2014 and Month-Name = 'March'. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;First table shows data Quarter-wise where-in [March is the end interval] &lt;/P&gt;&lt;P&gt; I should see data from January to March for current year(2014), same period last year and last to last year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Second table shows data Year-wise where-in [March is the end interval] &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt; I should see data from April to March for current year(2013-14), same period last year and last to last year.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am able to write Set Analysis Expression for calculating data Year-wise using the following Set Analysis - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum({&amp;lt;[Calendar Year] = {$(=ONLY([Calendar Year]) - 1)}&amp;gt;}[Metrics1])&amp;nbsp;&amp;nbsp;&amp;nbsp; -- Previous Year&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;EM&gt;Sum({&amp;lt;[Calendar Year] = {$(=ONLY([Calendar Year]) - 1)}&amp;gt;}[Metrics1])&amp;nbsp;&amp;nbsp;&amp;nbsp; -- Previous to Previous Year&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But I am not sure how to use Month Name in order to go back for last 3 months. I tried below expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum({&amp;lt;[MonthName]={'&amp;gt;=$(=MAX([MonthName])-2)&amp;lt;=$(=MAX([MonthName]))'}&amp;gt;}[Metrics1]). &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, how to handle the Jan and Feb month where-in we need to go back an year. Like, when I select &lt;STRONG&gt;Feb 2012&lt;/STRONG&gt;, then I should see data from &lt;STRONG&gt;Dec 2011 to Feb 2012. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 12:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-window-comparision/m-p/1073321#M638564</guid>
      <dc:creator />
      <dc:date>2016-03-25T12:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling window comparision</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-window-comparision/m-p/1073322#M638565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use a month name for this. April comes after March, but not sorted alphabetically. And it doesn't get you across year borders. You need to use a serial month number for this or a date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(MyDate)*12+Month(MyDate) as MonthSerial,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....other fields....&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can do things like&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year=,Month=,MonthSerial={'&amp;gt;=$(Max(MonthSerial)-2)&amp;lt;=$(Max(MonthSerial))'}&amp;gt;}Metric1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 12:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-window-comparision/m-p/1073322#M638565</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-25T12:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling window comparision</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-window-comparision/m-p/1073323#M638566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even after using MonthSerial column in Set Analysis expression, I can't see the aggregated value of last 3 months when I select month name from MonthName column. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year=,Month=,MonthSerial={'&amp;gt;=$(Max(MonthSerial)-2)&amp;lt;=$(Max(MonthSerial))'}&amp;gt;}[Metric1])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 13:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-window-comparision/m-p/1073323#M638566</guid>
      <dc:creator />
      <dc:date>2016-03-25T13:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling window comparision</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-window-comparision/m-p/1073324#M638567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post a small qlikview document that demonstrates the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 15:24:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-window-comparision/m-p/1073324#M638567</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-25T15:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling window comparision</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-window-comparision/m-p/1073325#M638568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me how to generate those Table Headers &lt;STRONG&gt;[April 2013 - March 2014]&lt;/STRONG&gt; dynamically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And which chart component would you recommend to create above table? Currently I am using KPI's only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 11:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-window-comparision/m-p/1073325#M638568</guid>
      <dc:creator />
      <dc:date>2016-03-28T11:26:58Z</dc:date>
    </item>
  </channel>
</rss>

