<?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 stacked Bar Chart in QlikSense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-stacked-Bar-Chart-in-QlikSense/m-p/2085204#M88983</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;No, it doesn't work as country is one of the dimension for the bar chart.&lt;/P&gt;
&lt;P&gt;Issue is if I select any country the bar chart selects it and it works fine.&lt;/P&gt;
&lt;P&gt;but with the expression in the measure for the bar chart:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if(country='J',sum(sales1),if(country='I',Aggr(RangeSum(Above(Sum(sales2), 0, RowNo())),YearMonth)))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The country 'I' disappears rest is shown. However still with this if I select 'I' from filters, the data appears in the same bar chart. very strange...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;normally:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jazzsran_0-1687163353373.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/110387i002734789B8129F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jazzsran_0-1687163353373.png" alt="jazzsran_0-1687163353373.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;when filter on 'I', only "I" appears:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jazzsran_1-1687163415044.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/110389i5DF80F6010564B12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jazzsran_1-1687163415044.png" alt="jazzsran_1-1687163415044.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;is it possible Rangesum or Aggr doesn't work in If statements?&lt;/P&gt;
&lt;P&gt;I am thinking of calculating the cumulative sum in the script for 'I' as well, others are already cumulative.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jun 2023 09:36:02 GMT</pubDate>
    <dc:creator>jazzsran</dc:creator>
    <dc:date>2023-06-19T09:36:02Z</dc:date>
    <item>
      <title>Cumulative Sum in stacked Bar Chart in QlikSense</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-stacked-Bar-Chart-in-QlikSense/m-p/2084970#M88961</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have stacked barchart, with two dimensions country and YearMonth and a measure sum(Sales) but for each country the source for sales is different, also the field names are different. suppose sales1 and sales2&lt;/P&gt;
&lt;P&gt;I am using if statement on country to guide to the correct calculative statement which is working fine.&lt;/P&gt;
&lt;P&gt;if(country='J',sum(sales1),if(country='I',Sum(Sales2)))&lt;/P&gt;
&lt;P&gt;Now, there is a requirement that one of sales is already cumulative other should be calculated in the chart.&lt;/P&gt;
&lt;P&gt;When I apply this formula only on that country it works fine, but when I add it in the If statement related data just disappeared and country from the chart.&lt;/P&gt;
&lt;P&gt;if(country='J',sum(sales1),if(country='I',Aggr(RangeSum(Above(Sum(sales2), 0, RowNo())),YearMonth)))&lt;/P&gt;
&lt;P&gt;Could anyone please guide me?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-stacked-Bar-Chart-in-QlikSense/m-p/2084970#M88961</guid>
      <dc:creator>jazzsran</dc:creator>
      <dc:date>2024-11-15T21:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum in stacked Bar Chart in QlikSense</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-stacked-Bar-Chart-in-QlikSense/m-p/2085015#M88964</link>
      <description>&lt;P&gt;Hi, I'm not sure but maybe adding country to the aggr():&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Aggr(RangeSum(Above(Sum(sales2), 0, RowNo())),YearMonth,Country)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jun 2023 06:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-stacked-Bar-Chart-in-QlikSense/m-p/2085015#M88964</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2023-06-18T06:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum in stacked Bar Chart in QlikSense</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-stacked-Bar-Chart-in-QlikSense/m-p/2085204#M88983</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;No, it doesn't work as country is one of the dimension for the bar chart.&lt;/P&gt;
&lt;P&gt;Issue is if I select any country the bar chart selects it and it works fine.&lt;/P&gt;
&lt;P&gt;but with the expression in the measure for the bar chart:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if(country='J',sum(sales1),if(country='I',Aggr(RangeSum(Above(Sum(sales2), 0, RowNo())),YearMonth)))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The country 'I' disappears rest is shown. However still with this if I select 'I' from filters, the data appears in the same bar chart. very strange...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;normally:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jazzsran_0-1687163353373.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/110387i002734789B8129F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jazzsran_0-1687163353373.png" alt="jazzsran_0-1687163353373.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;when filter on 'I', only "I" appears:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jazzsran_1-1687163415044.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/110389i5DF80F6010564B12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jazzsran_1-1687163415044.png" alt="jazzsran_1-1687163415044.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;is it possible Rangesum or Aggr doesn't work in If statements?&lt;/P&gt;
&lt;P&gt;I am thinking of calculating the cumulative sum in the script for 'I' as well, others are already cumulative.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 09:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-stacked-Bar-Chart-in-QlikSense/m-p/2085204#M88983</guid>
      <dc:creator>jazzsran</dc:creator>
      <dc:date>2023-06-19T09:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum in stacked Bar Chart in QlikSense</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-stacked-Bar-Chart-in-QlikSense/m-p/2085494#M89007</link>
      <description>&lt;P&gt;G'day&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/34323"&gt;@jazzsran&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I would bypass the problem by creating a new column in the load script according to your formula ...&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;rangesum( sales1, Sales2, ... ) as Sales&lt;/LI-CODE&gt;
&lt;P&gt;Then the expression in the chart becomes a normal aggregation.&lt;/P&gt;
&lt;P&gt;I hope this helps. Cheers, Barnaby.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 21:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-stacked-Bar-Chart-in-QlikSense/m-p/2085494#M89007</guid>
      <dc:creator>barnabyd</dc:creator>
      <dc:date>2023-06-19T21:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum in stacked Bar Chart in QlikSense</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-stacked-Bar-Chart-in-QlikSense/m-p/2098806#M89972</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Sorry for late reply.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2856"&gt;@barnabyd&lt;/a&gt;&amp;nbsp;, while your solution might work, I actually created a cumulated sum for another Sales as well and displayed on the chart. It worked fine.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 17:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-Sum-in-stacked-Bar-Chart-in-QlikSense/m-p/2098806#M89972</guid>
      <dc:creator>jazzsran</dc:creator>
      <dc:date>2023-07-31T17:55:18Z</dc:date>
    </item>
  </channel>
</rss>

