<?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: Cumulative Sum in table chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-table-chart/m-p/2487280#M101498</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/82758"&gt;@diegozecchini&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Appreciate for your quick response. I found the required result by using below expression:&lt;/P&gt;
&lt;P&gt;sum(aggr(RangeSum(above (total(Reached),0,RowNo())),Channel,Week))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You!&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2024 06:59:33 GMT</pubDate>
    <dc:creator>Daya_Acc</dc:creator>
    <dc:date>2024-10-16T06:59:33Z</dc:date>
    <item>
      <title>Cumulative Sum in table chart</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-table-chart/m-p/2486859#M101430</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have data in the below table format and wanted to do the cumulative sum on the basis of channel.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daya_Acc_0-1728907050978.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172903iB99D3D897FCFF992/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daya_Acc_0-1728907050978.png" alt="Daya_Acc_0-1728907050978.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to get the below output.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daya_Acc_1-1728907100530.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172904i8BA3411BAD8EF7A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daya_Acc_1-1728907100530.png" alt="Daya_Acc_1-1728907100530.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please help me to get the cumulative sum on the channel basis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance!.&lt;/P&gt;
&lt;P&gt;/Daya&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 12:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-table-chart/m-p/2486859#M101430</guid>
      <dc:creator>Daya_Acc</dc:creator>
      <dc:date>2024-10-14T12:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum in table chart</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-table-chart/m-p/2486862#M101431</link>
      <description>&lt;P&gt;Hi! &lt;BR /&gt;to achieve a cumulative sum based on the "Channel" in Qlik, you'll need to follow a few key steps using set analysis and the RangeSum() function. Here's how you can implement this:&lt;/P&gt;
&lt;P&gt;Ensure that your data is loaded in a format where you have the fields: Week, Channel, and Reached and create a new table chart in Qlik and add the dimensions Week and Channel.&lt;BR /&gt;To calculate the cumulative sum based on the Channel, you can use the RangeSum() function in combination with Above().&lt;/P&gt;
&lt;P&gt;Use the following expression as a measure for the cumulative sum:&lt;/P&gt;
&lt;P&gt;RangeSum(Above(TOTAL Sum(Reached), 0, RowNo(TOTAL)))&lt;/P&gt;
&lt;P&gt;This expression does the following:&lt;/P&gt;
&lt;P&gt;Sum(Reached) calculates the sum of the "Reached" value.&lt;BR /&gt;Above() is used to look at the rows above the current one.&lt;BR /&gt;RowNo(TOTAL) ensures that the function operates over the entire dataset (instead of just a single part of the table).&lt;BR /&gt;RangeSum() sums up the values from the top of the column down to the current row.&lt;/P&gt;
&lt;P&gt;If you want the cumulative sum to reset based on each Channel, modify the expression slightly to group by the channel:&lt;/P&gt;
&lt;P&gt;RangeSum(Above(Sum(Reached), 0, RowNo(TOTAL &amp;lt;Channel&amp;gt;)))&lt;/P&gt;
&lt;P&gt;This ensures that the cumulative sum resets for each new channel.&lt;/P&gt;
&lt;P&gt;The final table should display the cumulative values, grouped by Week and Channel, as you've shown in the image.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 12:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-table-chart/m-p/2486862#M101431</guid>
      <dc:creator>diegozecchini</dc:creator>
      <dc:date>2024-10-14T12:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum in table chart</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-table-chart/m-p/2486887#M101436</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/316512"&gt;@Daya_Acc&lt;/a&gt;&amp;nbsp; try below. Assuming your Week is in NUMERIC format&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=sum(aggr(rangesum(above(sum(Value),0,RowNo(total))),Channel,(Week,(NUMERIC))))&lt;/LI-CODE&gt;
&lt;P&gt;if week is in TEXT format, you might need to make either in dual format so that we can sort it in aggr function. You can try below as well&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=sum(aggr(rangesum(above(sum(Value),0,RowNo(total))),Channel,Week))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 13:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-table-chart/m-p/2486887#M101436</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-10-14T13:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum in table chart</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-table-chart/m-p/2487280#M101498</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/82758"&gt;@diegozecchini&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Appreciate for your quick response. I found the required result by using below expression:&lt;/P&gt;
&lt;P&gt;sum(aggr(RangeSum(above (total(Reached),0,RowNo())),Channel,Week))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 06:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-table-chart/m-p/2487280#M101498</guid>
      <dc:creator>Daya_Acc</dc:creator>
      <dc:date>2024-10-16T06:59:33Z</dc:date>
    </item>
  </channel>
</rss>

