<?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 Rolling 12 months in bar chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-12-months-in-bar-chart/m-p/311949#M1184166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could probably do set analysis for the expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt; planmonth = {"&amp;lt;=$(=Max(planmonth))"},{"&amp;gt;=$(=Max(planmonth)-12)"}&amp;gt;} [Valued Plan])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Oct 2011 13:45:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-04T13:45:14Z</dc:date>
    <item>
      <title>Rolling 12 months in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-months-in-bar-chart/m-p/311948#M1184165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - thanks in advance for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bar chart which has this as the dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;planmonth(date) - so displays Jan 2011 - Oct 2011 when 2011 is selected - fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this as an expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum([Valued Plan])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart works fine in that it shows the previous months in the year selected or all months/years if no date selected, but needs to go back further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need this chart to always show the last 12 months - so as of now Oct 2011 back to Nov 2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When viewed in say March 2012 will show Mar 2012 back to Apr 2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense, thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 13:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-months-in-bar-chart/m-p/311948#M1184165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-04T13:33:53Z</dc:date>
    </item>
    <item>
      <title>Rolling 12 months in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-months-in-bar-chart/m-p/311949#M1184166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could probably do set analysis for the expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt; planmonth = {"&amp;lt;=$(=Max(planmonth))"},{"&amp;gt;=$(=Max(planmonth)-12)"}&amp;gt;} [Valued Plan])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 13:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-months-in-bar-chart/m-p/311949#M1184166</guid>
      <dc:creator />
      <dc:date>2011-10-04T13:45:14Z</dc:date>
    </item>
    <item>
      <title>Rolling 12 months in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-months-in-bar-chart/m-p/311950#M1184167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried that but failed to load any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I replaced planmonth with my planmonth(date) which is [Plan Month Date]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt; [Plan Month Date] = {"&amp;lt;=$(=Max([Plan Month Date]))"},{"&amp;gt;=$(=Max([Plan Month Date])-12)"}&amp;gt;} [Valued Plan])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is that correct? missing a comma, bracket, quote? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 14:03:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-months-in-bar-chart/m-p/311950#M1184167</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-04T14:03:00Z</dc:date>
    </item>
    <item>
      <title>Rolling 12 months in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-months-in-bar-chart/m-p/311951#M1184168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, is your field planmonth(date) return a date, a month, or a year?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It had extra brackets , so this will work, but I do not think it is what you are looking for.&lt;/P&gt;&lt;P&gt;sum({$&amp;lt; [Plan Month Date]= {"&amp;lt;=$(=Max([Plan Month Date]))","&amp;gt;=$(=Max([Plan Month Date])-12)"}&amp;gt;}[Valued Plan])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt; [Plan Month Date]= {"&amp;lt;=$(=Max([Plan Month Date]))","&amp;gt;=$(=monthstart(Max([Plan Month Date])-365))"}&amp;gt;}[Valued Plan])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To test the values being returned for date just create a list box with expression Max([Plan Month Date]) and another list box with expression monthstart(Max([Plan Month Date])-365)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 14:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-months-in-bar-chart/m-p/311951#M1184168</guid>
      <dc:creator />
      <dc:date>2011-10-04T14:13:31Z</dc:date>
    </item>
    <item>
      <title>Rolling 12 months in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-months-in-bar-chart/m-p/311952#M1184169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field is planmonth so Jan 2011, Feb 2011, Mar 2011 etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried those 2 expressions - both return all data available rather than last 12 months&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 14:26:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-months-in-bar-chart/m-p/311952#M1184169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-04T14:26:23Z</dc:date>
    </item>
    <item>
      <title>Rolling 12 months in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-months-in-bar-chart/m-p/311953#M1184170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 14:32:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-months-in-bar-chart/m-p/311953#M1184170</guid>
      <dc:creator />
      <dc:date>2011-10-04T14:32:24Z</dc:date>
    </item>
  </channel>
</rss>

