<?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: Not recalculate when limit dimension! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Not-recalculate-when-limit-dimension/m-p/497204#M1148017</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately not.&lt;/P&gt;&lt;P&gt;-12 displays nothing and 9 (also tried 12) still display the wrong values​​.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jun 2013 13:47:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-21T13:47:06Z</dc:date>
    <item>
      <title>Not recalculate when limit dimension!</title>
      <link>https://community.qlik.com/t5/QlikView/Not-recalculate-when-limit-dimension/m-p/497202#M1148015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The following expression makes a division of 2 fields and it works fine.&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13718291835028574" jivemacro_uid="_13718291835028574"&gt;&lt;P&gt;rangesum(above(sum(GASTO_CALC),0,12))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;rangesum(above(sum(RECEITA_CALC),0,12))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;The problem is that I need to display only the last 12 values ​​and when I determine a limit of the dimension, the values ​​are changed.&lt;/P&gt;&lt;P&gt;I believe this occurs because of 0 (first line) at ,0,12.&lt;/P&gt;&lt;P&gt;What I want is NOT RECALCULATE values ​​when I display only the last 12 in the chart.&lt;/P&gt;&lt;P&gt;Can You help me?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="43083" alt="LIMIT_ERROR.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/43083_LIMIT_ERROR.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 13:31:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-recalculate-when-limit-dimension/m-p/497202#M1148015</guid>
      <dc:creator />
      <dc:date>2013-06-21T13:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Not recalculate when limit dimension!</title>
      <link>https://community.qlik.com/t5/QlikView/Not-recalculate-when-limit-dimension/m-p/497203#M1148016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;rangesum(above(sum(GASTO_CALC),9,rowno()))&lt;BR /&gt;/&lt;BR /&gt;rangesum(above(sum(RECEITA_CALC),9,rowno()))&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 13:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-recalculate-when-limit-dimension/m-p/497203#M1148016</guid>
      <dc:creator />
      <dc:date>2013-06-21T13:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Not recalculate when limit dimension!</title>
      <link>https://community.qlik.com/t5/QlikView/Not-recalculate-when-limit-dimension/m-p/497204#M1148017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately not.&lt;/P&gt;&lt;P&gt;-12 displays nothing and 9 (also tried 12) still display the wrong values​​.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 13:47:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-recalculate-when-limit-dimension/m-p/497204#M1148017</guid>
      <dc:creator />
      <dc:date>2013-06-21T13:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Not recalculate when limit dimension!</title>
      <link>https://community.qlik.com/t5/QlikView/Not-recalculate-when-limit-dimension/m-p/497205#M1148018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;aggr(rangesum(above(sum({&amp;lt;[&lt;SPAN style="font-family: monospace;"&gt;Ano-Mês]&lt;/SPAN&gt;=&amp;gt;}GASTO_CALC),0,12))&lt;BR /&gt;/&lt;BR /&gt;rangesum(above(sum(&lt;/CODE&gt;&lt;SPAN style="font-family: monospace;"&gt;{&amp;lt;[&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace;"&gt;Ano-Mês]&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace;"&gt;=&amp;gt;}&lt;/SPAN&gt;&lt;CODE class="jive-code"&gt;RECEITA_CALC),0,12)),[Ano-Mês])&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 14:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-recalculate-when-limit-dimension/m-p/497205#M1148018</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-21T14:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Not recalculate when limit dimension!</title>
      <link>https://community.qlik.com/t5/QlikView/Not-recalculate-when-limit-dimension/m-p/497206#M1148019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does not work.&lt;/P&gt;&lt;P&gt;Anyway, I'm attaching the file in first post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 15:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-recalculate-when-limit-dimension/m-p/497206#M1148019</guid>
      <dc:creator />
      <dc:date>2013-06-21T15:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Not recalculate when limit dimension!</title>
      <link>https://community.qlik.com/t5/QlikView/Not-recalculate-when-limit-dimension/m-p/497207#M1148020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached example. The aggr-rangesum combination needs ANO_MES to be sorted chronologically. This is because the aggr function doesn't have a sort parameter and thus uses the load order. If you first load the months and make sure they're sorted by chronologically the aggr-rangesum expression works fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also try an AsOf table. See &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4252" style="font-size: 12px; color: #007fc0; font-family: Arial;"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt; for more information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 17:07:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-recalculate-when-limit-dimension/m-p/497207#M1148020</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-21T17:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Not recalculate when limit dimension!</title>
      <link>https://community.qlik.com/t5/QlikView/Not-recalculate-when-limit-dimension/m-p/497208#M1148021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert,&lt;/P&gt;&lt;P&gt;The problem was solved using just set analysis.&lt;/P&gt;&lt;P&gt;Looking at your expression, I figure out how to use it properly. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13724399397948393" jivemacro_uid="_13724399397948393"&gt;&lt;P&gt;sum(aggr(rangesum(above(total sum({&amp;lt;ANO_MES,ANO,MÊS,ORDEM_MES=&amp;gt;}GASTO_CALC),0,12)),ANO_MES,ANO,MÊS,ORDEM_MES))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum(aggr(rangesum(above(total sum({&amp;lt;ANO_MES,ANO,MÊS,ORDEM_MES=&amp;gt;}RECEITA_CALC),0,12)),ANO_MES,ANO,MÊS,ORDEM_MES))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 17:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-recalculate-when-limit-dimension/m-p/497208#M1148021</guid>
      <dc:creator />
      <dc:date>2013-06-28T17:20:11Z</dc:date>
    </item>
  </channel>
</rss>

