<?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: Cumulate sumproduct with rangesum over two dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cumulate-sumproduct-with-rangesum-over-two-dimensions/m-p/66936#M774752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌My bad... i forgot to add the rangesum above part... try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Aggr(&lt;SPAN style="color: #ff0000;"&gt;RangeSum(Above(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum(TOTAL &amp;lt;CUSTOMER_NAME, QUARTER&amp;gt;Aggr($(vAverageBruttoByCustomer), CUSTOMER_NAME, PLACE, QUARTER)), &lt;SPAN style="color: #ff0000;"&gt;0,&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;RowNo()))&lt;/SPAN&gt;, CUSTOMER_NAME, PLACE, YEAR, QUARTER)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2018 09:57:33 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-05-08T09:57:33Z</dc:date>
    <item>
      <title>Cumulate sumproduct with rangesum over two dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulate-sumproduct-with-rangesum-over-two-dimensions/m-p/66933#M774749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to cumulate the values for every Customer (Dimension 1) and the displayed Quarters (Dimension 2).&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="201775" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201775_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Formular for Column "Average" is&amp;nbsp; a Sumproduct and calculated by:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUSTOMER_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;QUARTER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="; color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vAverageBruttoByCustomer)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUSTOMER_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PLACE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;QUARTER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;$(vAverageBruttoByCustomer&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;) is calculated in the script by:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;set&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;v&lt;SPAN style="color: #808080;"&gt;&lt;STRONG&gt;&lt;EM&gt;AverageBruttoByCustomer&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '(Sum(Brutto_Place)/SUM(Customer_Place)*sum(total&amp;lt;CUSTOMER_NAME, PLACE, YEAR&amp;gt; Value))/(sum(total&amp;lt;CUSTOMER_NAME, YEAR&amp;gt; Value))'; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like in the Screenshot marked, I want the cumulation only for the Quarters per Year. 2014Q1-2014Q4 and then start again for 2015Q1-2015Q4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does it work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tried this... but doesn't work like i want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;STRONG&gt;The Column "cumul. Average" is based on the calculation of "Average" and calculated like this:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;((&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;left&lt;/SPAN&gt; (&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;QUARTER&lt;/SPAN&gt;, 4)= &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;above&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;left&lt;/SPAN&gt; (&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;QUARTER&lt;/SPAN&gt;, 4))),&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RangeSum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Above&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Column&lt;/SPAN&gt;(1), 0, &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RowNo&lt;/SPAN&gt;())), &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RangeSum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Column&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(1))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried the solution by &lt;A href="https://community.qlik.com/qlik-users/171708" target="_blank"&gt;stalwar1&lt;/A&gt;‌ of the discussion: &lt;A _jive_internal="true" class="font-color-meta-light" href="https://community.qlik.com/message/1163185#1163185" target="_blank"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;Re: Rangesum cumulative with 2 dimensions&lt;/SPAN&gt;&lt;/A&gt;&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;&lt;STRONG&gt;RangeSum(Above(Column(1), 0, RowNo()))&lt;/STRONG&gt;&lt;/SPAN&gt; for&amp;nbsp; "cumul. Average" - does not work in my case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help to solve the problem? Thanks very much!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nachricht geändert durch Tanja Steiner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulate-sumproduct-with-rangesum-over-two-dimensions/m-p/66933#M774749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulate sumproduct with rangesum over two dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulate-sumproduct-with-rangesum-over-two-dimensions/m-p/66934#M774750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to test it out and help you better?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 09:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulate-sumproduct-with-rangesum-over-two-dimensions/m-p/66934#M774750</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-08T09:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulate sumproduct with rangesum over two dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulate-sumproduct-with-rangesum-over-two-dimensions/m-p/66935#M774751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or may be try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL &amp;lt;CUSTOMER_NAME, QUARTER&amp;gt;Aggr($(vAverageBruttoByCustomer), CUSTOMER_NAME, PLACE, QUARTER)), CUSTOMER_NAME, PLACE, &lt;SPAN style="color: #ff0000;"&gt;YEAR&lt;/SPAN&gt;, QUARTER)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 09:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulate-sumproduct-with-rangesum-over-two-dimensions/m-p/66935#M774751</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-08T09:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulate sumproduct with rangesum over two dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulate-sumproduct-with-rangesum-over-two-dimensions/m-p/66936#M774752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌My bad... i forgot to add the rangesum above part... try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Aggr(&lt;SPAN style="color: #ff0000;"&gt;RangeSum(Above(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum(TOTAL &amp;lt;CUSTOMER_NAME, QUARTER&amp;gt;Aggr($(vAverageBruttoByCustomer), CUSTOMER_NAME, PLACE, QUARTER)), &lt;SPAN style="color: #ff0000;"&gt;0,&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;RowNo()))&lt;/SPAN&gt;, CUSTOMER_NAME, PLACE, YEAR, QUARTER)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 09:57:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulate-sumproduct-with-rangesum-over-two-dimensions/m-p/66936#M774752</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-08T09:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulate sumproduct with rangesum over two dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulate-sumproduct-with-rangesum-over-two-dimensions/m-p/66937#M774753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are great!!! That is the right solution!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 10:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulate-sumproduct-with-rangesum-over-two-dimensions/m-p/66937#M774753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-08T10:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulate sumproduct with rangesum over two dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulate-sumproduct-with-rangesum-over-two-dimensions/m-p/66938#M774754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might also work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Above(Column(1), 0, &lt;SPAN style="color: #ff0000;"&gt;(Right(QUARTER, 2)/3)&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 11:06:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulate-sumproduct-with-rangesum-over-two-dimensions/m-p/66938#M774754</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-08T11:06:12Z</dc:date>
    </item>
  </channel>
</rss>

