<?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: Using Accumulate 12 steps back for MAT graph, but cant limit date range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Accumulate-12-steps-back-for-MAT-graph-but-cant-limit-date/m-p/1065490#M356260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps like this:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;YearPeriod={'&amp;gt;=$(=AddMonths(max(YearPeriod),-11))'}&amp;gt;}aggr(rangesum(above(sum({&amp;lt;YearPeriod=&amp;gt;}Quantity),0,11)),YearPeriod))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Mar 2016 12:52:22 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-03-14T12:52:22Z</dc:date>
    <item>
      <title>Using Accumulate 12 steps back for MAT graph, but cant limit date range</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Accumulate-12-steps-back-for-MAT-graph-but-cant-limit-date/m-p/1065488#M356258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a line chart which has two dimensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yearperiod = 201601, 201602, 201603 etc etc&lt;/P&gt;&lt;P&gt;Acgroup = FAB, BOB, TOE, QUE etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And one expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(Quantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This also has Accumulate 12 steps back ticked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the data i get in the chart is correct and is what i want my MAT to be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the line chart is showing all dates and i just want to limit it to the last 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried doing this with a calculated dimension for Yearperiod like so:&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;=if(&lt;SPAN style="font-size: 13.3333px;"&gt;Yearperiod &lt;/SPAN&gt;&amp;gt;= addmonths(today(),-6), &lt;SPAN style="font-size: 13.3333px;"&gt;Yearperiod &lt;/SPAN&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;But this didn't do anything.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 10:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Accumulate-12-steps-back-for-MAT-graph-but-cant-limit-date/m-p/1065488#M356258</guid>
      <dc:creator>matthewp</dc:creator>
      <dc:date>2016-03-14T10:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using Accumulate 12 steps back for MAT graph, but cant limit date range</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Accumulate-12-steps-back-for-MAT-graph-but-cant-limit-date/m-p/1065489#M356259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With this approach you would need to convert and format your date which you get through addmonths() like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... year(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;addmonths(today(),-6)) * 100 + num(month(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;addmonths(today(),-6)), '00') ... // only 6 months ?&lt;/SPAN&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;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;another way might be:&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;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;aggr(if(&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Yearperiod &amp;gt;= &lt;/SPAN&gt;max(&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Yearperiod) - 100, &lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Yearperiod), &lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Yearperiod) // 12 months&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 11:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Accumulate-12-steps-back-for-MAT-graph-but-cant-limit-date/m-p/1065489#M356259</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-03-14T11:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using Accumulate 12 steps back for MAT graph, but cant limit date range</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Accumulate-12-steps-back-for-MAT-graph-but-cant-limit-date/m-p/1065490#M356260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps like this:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;YearPeriod={'&amp;gt;=$(=AddMonths(max(YearPeriod),-11))'}&amp;gt;}aggr(rangesum(above(sum({&amp;lt;YearPeriod=&amp;gt;}Quantity),0,11)),YearPeriod))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 12:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Accumulate-12-steps-back-for-MAT-graph-but-cant-limit-date/m-p/1065490#M356260</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-14T12:52:22Z</dc:date>
    </item>
  </channel>
</rss>

