<?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 3 month in straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-3-month-in-straight-table/m-p/465269#M173768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rangesum is sadly not an option since all months needs to be "shown" in the table.&lt;/P&gt;&lt;P&gt;When the user selects year = 2012 the value for Jan-2012 must be the value for Nov-2011 -&amp;gt; Jan-2012 and not only Jan-2012.&lt;/P&gt;&lt;P&gt;Can't see why this requirement should be impossible...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2012 12:29:16 GMT</pubDate>
    <dc:creator>blaise</dc:creator>
    <dc:date>2012-11-26T12:29:16Z</dc:date>
    <item>
      <title>Last 3 month in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-month-in-straight-table/m-p/465267#M173766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qv'ers&lt;/P&gt;&lt;P&gt;I have a problem with showing a sum of the last X months in a straight table, where x i = 3.&lt;/P&gt;&lt;P&gt;I use the following expression to get the sum of the month;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13539225183991401" jivemacro_uid="_13539225183991401"&gt;&lt;P&gt;sum(ReturnedItems)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a straight table with Year and Month as dimensions (as seen in table below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would like a sum of the last 3 months, so the november value should include all &lt;EM&gt;ReturnedItems &lt;/EM&gt;between 25aug2012 and 26nov2012.&lt;/P&gt;&lt;P&gt;The value for october should show sum of &lt;EM&gt;ReturnedItems &lt;/EM&gt;between 26jul2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="147" style="width: 469px; border: 1px solid rgb(0, 0, 0); height: 149px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Returned Items&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Returned Items last 3 months&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2012&lt;/TD&gt;&lt;TD&gt;jul&lt;/TD&gt;&lt;TD&gt;1.000&lt;/TD&gt;&lt;TD&gt;1.000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2012&lt;/TD&gt;&lt;TD&gt;aug&lt;/TD&gt;&lt;TD&gt;2.000&lt;/TD&gt;&lt;TD&gt;3.000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2012&lt;/TD&gt;&lt;TD&gt;sep&lt;/TD&gt;&lt;TD&gt;3.000&lt;/TD&gt;&lt;TD&gt;6.000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2012&lt;/TD&gt;&lt;TD&gt;oct&lt;/TD&gt;&lt;TD&gt;4.000&lt;/TD&gt;&lt;TD&gt;9.000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2012&lt;/TD&gt;&lt;TD&gt;nov&lt;/TD&gt;&lt;TD&gt;5.000&lt;/TD&gt;&lt;TD&gt;12.000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The column returned items last 3 months shows what i want in the table at the 30th of Nov 2012, and with data from the 1st of Jul 2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with a set analysis ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13539227866993421" jivemacro_uid="_13539227866993421"&gt;&lt;P&gt;sum( {$&amp;lt;Year = , Month = , Week = , Date = {"&amp;lt;=$(=date(max(DateValid))) &amp;gt;=$(=date(addmonths(max(DateValid),-3))) "}&amp;gt;} ReturnedItems)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the Total &amp;lt;allmost all combination of keys&amp;gt;, All and aggr together with rangesum none of them give me the result i want. Most often they only gives a result for sep, oct, and nov (and not the sum of the last 3 months from that date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 09:41:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-month-in-straight-table/m-p/465267#M173766</guid>
      <dc:creator>blaise</dc:creator>
      <dc:date>2012-11-26T09:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 month in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-month-in-straight-table/m-p/465268#M173767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try Chart Properties -&amp;gt; Expressions -&amp;gt; Accumulation -&amp;gt; Accumulate 3 steps back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 12:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-month-in-straight-table/m-p/465268#M173767</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-11-26T12:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 month in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-month-in-straight-table/m-p/465269#M173768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rangesum is sadly not an option since all months needs to be "shown" in the table.&lt;/P&gt;&lt;P&gt;When the user selects year = 2012 the value for Jan-2012 must be the value for Nov-2011 -&amp;gt; Jan-2012 and not only Jan-2012.&lt;/P&gt;&lt;P&gt;Can't see why this requirement should be impossible...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 12:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-month-in-straight-table/m-p/465269#M173768</guid>
      <dc:creator>blaise</dc:creator>
      <dc:date>2012-11-26T12:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Last 3 month in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Last-3-month-in-straight-table/m-p/465270#M173769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;same issues as with the use of rangesum(above()).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 12:31:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-3-month-in-straight-table/m-p/465270#M173769</guid>
      <dc:creator>blaise</dc:creator>
      <dc:date>2012-11-26T12:31:49Z</dc:date>
    </item>
  </channel>
</rss>

