<?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 Accumulation in a Pivot Table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Accumulation-in-a-Pivot-Table/m-p/1966328#M79657</link>
    <description>&lt;P&gt;I have a simple Fact table with the following fields;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Takeover Month&lt;/LI&gt;
&lt;LI&gt;Months After Takeover (0,1,2,3...)&lt;/LI&gt;
&lt;LI&gt;Revenue&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to build a Pivot Table that has Takeover Month on the Left and Months After Takeover on the top. My Measure is Sum(Revenue) but needs to accumulate in the Months After takeover.&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;Below are some of the things I've tried that haven't worked;&lt;/P&gt;
&lt;P&gt;I've managed to get it to accumulate in the wrong dimension using this&lt;/P&gt;
&lt;P&gt;RangeSum(Above(If(Count([$(=Replace(GetObjectField(0),']',']]'))]) &amp;gt; 0, (　Sum(&lt;BR /&gt;Revenue)) + Sum({1&amp;lt;[$(=Replace(GetObjectField(0),']',']]'))]={"&amp;gt;=$(=Min([$(=Replace(GetObjectField(0),']',']]'))]))&amp;lt;=$(=Max([$(=Replace(GetObjectField(0),']',']]'))]))"}&amp;gt;}0), 0), 0, RowNo()))&lt;/P&gt;
&lt;P&gt;Switching it to ColumnNo() also didn't work. Nor did replacing the zeros with ColumnNo and RowNo with zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I expected this to work, but it just gives me the same result as if I had the straight Sum;&lt;/P&gt;
&lt;P&gt;=Sum(&lt;BR /&gt;{&amp;lt;&lt;BR /&gt;[Months After Takeover]={"&amp;gt;=0,&amp;lt;=$(=Max([Months After Takeover]))"}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;Value)&lt;/P&gt;</description>
    <pubDate>Tue, 09 Aug 2022 08:53:29 GMT</pubDate>
    <dc:creator>Andrew_S</dc:creator>
    <dc:date>2022-08-09T08:53:29Z</dc:date>
    <item>
      <title>Accumulation in a Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Accumulation-in-a-Pivot-Table/m-p/1966328#M79657</link>
      <description>&lt;P&gt;I have a simple Fact table with the following fields;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Takeover Month&lt;/LI&gt;
&lt;LI&gt;Months After Takeover (0,1,2,3...)&lt;/LI&gt;
&lt;LI&gt;Revenue&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to build a Pivot Table that has Takeover Month on the Left and Months After Takeover on the top. My Measure is Sum(Revenue) but needs to accumulate in the Months After takeover.&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;Below are some of the things I've tried that haven't worked;&lt;/P&gt;
&lt;P&gt;I've managed to get it to accumulate in the wrong dimension using this&lt;/P&gt;
&lt;P&gt;RangeSum(Above(If(Count([$(=Replace(GetObjectField(0),']',']]'))]) &amp;gt; 0, (　Sum(&lt;BR /&gt;Revenue)) + Sum({1&amp;lt;[$(=Replace(GetObjectField(0),']',']]'))]={"&amp;gt;=$(=Min([$(=Replace(GetObjectField(0),']',']]'))]))&amp;lt;=$(=Max([$(=Replace(GetObjectField(0),']',']]'))]))"}&amp;gt;}0), 0), 0, RowNo()))&lt;/P&gt;
&lt;P&gt;Switching it to ColumnNo() also didn't work. Nor did replacing the zeros with ColumnNo and RowNo with zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I expected this to work, but it just gives me the same result as if I had the straight Sum;&lt;/P&gt;
&lt;P&gt;=Sum(&lt;BR /&gt;{&amp;lt;&lt;BR /&gt;[Months After Takeover]={"&amp;gt;=0,&amp;lt;=$(=Max([Months After Takeover]))"}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;Value)&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 08:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Accumulation-in-a-Pivot-Table/m-p/1966328#M79657</guid>
      <dc:creator>Andrew_S</dc:creator>
      <dc:date>2022-08-09T08:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation in a Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Accumulation-in-a-Pivot-Table/m-p/1966361#M79659</link>
      <description>&lt;P&gt;May this;&lt;/P&gt;
&lt;P&gt;=Sum({$&amp;lt;[Months After Takeover]={"&amp;gt;=0&amp;lt;=$(=Max([Months After Takeover]))"}&amp;gt;}Value)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 09:28:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Accumulation-in-a-Pivot-Table/m-p/1966361#M79659</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-08-09T09:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation in a Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Accumulation-in-a-Pivot-Table/m-p/1966388#M79661</link>
      <description>&lt;P&gt;That didn't work either. Thanks for the suggestion though. Each failure is one step closer to success &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 10:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Accumulation-in-a-Pivot-Table/m-p/1966388#M79661</guid>
      <dc:creator>Andrew_S</dc:creator>
      <dc:date>2022-08-09T10:01:34Z</dc:date>
    </item>
  </channel>
</rss>

