<?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 13 months rolling with previous year comparison graph in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278495#M1203115</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 want to have a graph showing current year with previous year lines one on top of each other. This would look similar to this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2424_sourceID:2424" /&gt;&lt;/P&gt;&lt;P&gt;This works fine because I have a right function over my periods. Periods are defined as a XXXXMM string (this is how it is defined in the DB). Now, if I want to have a 13 months rolling, one months would be repeated and the data summed together, which is wrong. On the other hand, if we leave the full string, we won't be able to have the two lines above each other. Anyone out there with an idea?&lt;/P&gt;&lt;P&gt;Thanks and regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Sep 2010 16:22:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-22T16:22:15Z</dc:date>
    <item>
      <title>13 months rolling with previous year comparison graph</title>
      <link>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278495#M1203115</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 want to have a graph showing current year with previous year lines one on top of each other. This would look similar to this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2424_sourceID:2424" /&gt;&lt;/P&gt;&lt;P&gt;This works fine because I have a right function over my periods. Periods are defined as a XXXXMM string (this is how it is defined in the DB). Now, if I want to have a 13 months rolling, one months would be repeated and the data summed together, which is wrong. On the other hand, if we leave the full string, we won't be able to have the two lines above each other. Anyone out there with an idea?&lt;/P&gt;&lt;P&gt;Thanks and regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 16:22:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278495#M1203115</guid>
      <dc:creator />
      <dc:date>2010-09-22T16:22:15Z</dc:date>
    </item>
    <item>
      <title>13 months rolling with previous year comparison graph</title>
      <link>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278496#M1203116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this if I understood the question:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;YourMainTable:&lt;BR /&gt;LOAD&lt;BR /&gt;...&lt;BR /&gt;,month(date#(Period,'YYYYMM')) as Month&lt;BR /&gt;, year(date#(Period,'YYYYMM')) as Year&lt;BR /&gt;, date(date#(Period,'YYYYMM'),'MMM YY') as MonthYear&lt;BR /&gt;...&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;AsOf:&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt; MonthYear as AsOfMonthYear&lt;BR /&gt;,Month as AsOfMonth&lt;BR /&gt;,Year as AsOfYear&lt;BR /&gt;RESIDENT YourMainTable&lt;BR /&gt;;&lt;BR /&gt;LEFT JOIN (AsOf)&lt;BR /&gt;LOAD AsOfMonthYear as MonthYear&lt;BR /&gt;RESIDENT AsOf&lt;BR /&gt;;&lt;BR /&gt;INNER JOIN (AsOf)&lt;BR /&gt;LOAD *&lt;BR /&gt;RESIDENT AsOf&lt;BR /&gt;WHERE AsOfMonthYear &amp;gt;= MonthYear&lt;BR /&gt; AND AsOfMonthYear &amp;lt;= addmonths(MonthYear,12)&lt;BR /&gt;;&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Dimension 1 = AsOfMonth&lt;BR /&gt;Dimension 2 = AsOfYear&lt;BR /&gt;Expression = sum(Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 00:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278496#M1203116</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-09-23T00:14:55Z</dc:date>
    </item>
    <item>
      <title>13 months rolling with previous year comparison graph</title>
      <link>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278497#M1203117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;It is not exactly what I am trying to achieve. Here is a screenshot of what it should look like:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/674/0777.chart.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/674/0777.chart.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I don't think your script does allow this. My problem is how to make a repeated months like 03 in this example unique. I alos forgot to mention that the user can chose tzhe "starting point". In this example the user selected March 2010. The graphs goes then back to March 2009 for the "Current Year" numbers and from March 2009 to March 2008 for the "Previous Year" numbers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 09:11:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278497#M1203117</guid>
      <dc:creator />
      <dc:date>2010-09-23T09:11:44Z</dc:date>
    </item>
    <item>
      <title>13 months rolling with previous year comparison graph</title>
      <link>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278498#M1203118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. User selects March 2010. The "sales current year" line should show March 2009 through March 2010. The "sales previous year" line should show March 2008 through March 2009. Now, let's take for example the data point for January 2010. Do you want that to sum up ONLY the sales from January 2010, or do you want it to sum up ALL sales from January 2009 through January 2010 (which is what I normally understand "rolling 13 months" to mean, but perhaps not in this case).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 17:44:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278498#M1203118</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-09-23T17:44:37Z</dc:date>
    </item>
    <item>
      <title>13 months rolling with previous year comparison graph</title>
      <link>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278499#M1203119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to only sum up the sales for January 2010. However my problem is not really how I sum it up but how do I display these two lines above each other. To achieve this, I remove the part "Year" which works fine with 12 months because each is unique. If I have 13 months, one won't be unique and get summed up. Additionally, I don't want to create a value "Sales Previous Year" derived from my values Sales because it would mean having twice as much data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 08:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278499#M1203119</guid>
      <dc:creator />
      <dc:date>2010-09-24T08:54:57Z</dc:date>
    </item>
    <item>
      <title>13 months rolling with previous year comparison graph</title>
      <link>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278500#M1203120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is one approach. I've created an AsOf table. You're forced to choose a single AsOfMonth. When you do so, that AsOfMonth is linked to the current year's 13 months by a YearType of 'Current' and MonthsBack of 0-12. It is also linked to the previous year's 13 months by a YearType of 'Previous' and MonthsBack of 0-12. The chart is then trivial, with dimensions of AsOfMonth and MonthsBack, and expression sum(Sales).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 18:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278500#M1203120</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-09-24T18:42:13Z</dc:date>
    </item>
    <item>
      <title>13 months rolling with previous year comparison graph</title>
      <link>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278501#M1203121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works. We would need to replace the "MonthsBack" by something showing the effective month but that shouldn't be the problem. I'll post something when I have it.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 14:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278501#M1203121</guid>
      <dc:creator />
      <dc:date>2010-09-29T14:53:21Z</dc:date>
    </item>
    <item>
      <title>13 months rolling with previous year comparison graph</title>
      <link>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278502#M1203122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here we go. I have added a left function on the Month field. However, if MonthsBack = 0 I have a space character after the month name. This makes them unique!&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/674/3527.chart.PNG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/674/3527.chart.PNG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 15:15:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278502#M1203122</guid>
      <dc:creator />
      <dc:date>2010-09-29T15:15:21Z</dc:date>
    </item>
    <item>
      <title>13 months rolling with previous year comparison graph</title>
      <link>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278503#M1203123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys, recently I got stuck with the problem you solved in this post.&lt;/P&gt;&lt;P&gt;What I want it's a little bit different.&lt;/P&gt;&lt;P&gt;I don't want to compare between years with an "AsOfMonth" clicked.&lt;/P&gt;&lt;P&gt;My desired result would be a table with months dimension, and the sum of the sales of the last 12 months once I have a Year selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 16:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278503#M1203123</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-12-20T16:10:22Z</dc:date>
    </item>
    <item>
      <title>13 months rolling with previous year comparison graph</title>
      <link>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278504#M1203124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Marcel Olmo wrote:My desired result would be a table with months dimension, and the sum of the sales of the last 12 months once I have a Year selected.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Sales:&lt;BR /&gt;Month, Customer, Sales&lt;BR /&gt;2010 Dec, Ann, 20&lt;BR /&gt;2010 Dec, Bob, 10&lt;BR /&gt;2010 Nov, Ann, 15&lt;BR /&gt;etc.&lt;/P&gt;&lt;P&gt;AsOfCalendar:&lt;BR /&gt;AsOfYear, AsOfMonth&lt;BR /&gt;2010, 2010 Dec&lt;BR /&gt;2010, 2010 Nov&lt;BR /&gt;etc.&lt;/P&gt;&lt;P&gt;AsOf:&lt;BR /&gt;AsOfMonth, Month&lt;BR /&gt;2010 Dec, 2010 Dec&lt;BR /&gt;2010 Dec, 2010 Nov&lt;BR /&gt;...&lt;BR /&gt;2010 Dec, 2010 Jan&lt;BR /&gt;2010 Nov, 2010 Nov&lt;BR /&gt;2010 Nov, 2010 Oct&lt;BR /&gt;...&lt;BR /&gt;2010 Nov, 2009 Dec&lt;BR /&gt;etc.&lt;/P&gt;&lt;P&gt;Dimension = AsOfMonth&lt;BR /&gt;Expression = sum(Sales)&lt;/P&gt;&lt;P&gt;If you select AsOfYear 2010, that gives you every AsOfMonth in 2010. Each AsOfMonth in 2010 connects to your actual months to give you your rolling 12 months of data by just using sum(Sales).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 20:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278504#M1203124</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-12-20T20:24:04Z</dc:date>
    </item>
    <item>
      <title>13 months rolling with previous year comparison graph</title>
      <link>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278505#M1203125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John, now it worked nice.&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 00:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278505#M1203125</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-12-21T00:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: 13 months rolling with previous year comparison graph</title>
      <link>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278506#M1203126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John Witherspoon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your solution it helped me also, here one more request from my side , in the same attached application I want to see a bar chart with last 13 months Variance with its Previous year same month how do I do this, could you please help me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 06:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/278506#M1203126</guid>
      <dc:creator />
      <dc:date>2016-02-04T06:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: 13 months rolling with previous year comparison graph</title>
      <link>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/1736062#M1203127</link>
      <description>&lt;P&gt;Hi, does anyone have an example of this solution. The attached does not load.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 20:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/13-months-rolling-with-previous-year-comparison-graph/m-p/1736062#M1203127</guid>
      <dc:creator>darrinturner</dc:creator>
      <dc:date>2020-08-14T20:58:50Z</dc:date>
    </item>
  </channel>
</rss>

