<?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: Stacked bar chats with cumulative amount and missing values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Stacked-bar-chats-with-cumulative-amount-and-missing-values/m-p/1751589#M57865</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/33712"&gt;@fabrice_lattern&lt;/a&gt;&amp;nbsp; what is expected results?&lt;/P&gt;</description>
    <pubDate>Mon, 12 Oct 2020 13:01:24 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-10-12T13:01:24Z</dc:date>
    <item>
      <title>Stacked bar chats with cumulative amount and missing values</title>
      <link>https://community.qlik.com/t5/App-Development/Stacked-bar-chats-with-cumulative-amount-and-missing-values/m-p/1751583#M57864</link>
      <description>&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;I am trying to do a cumulative stacked bar chart with two dimensions (basically time &amp;amp; some geographical region). It works when I have data for each period of time and each region, but it is not working when there is no data for a given period &amp;amp; region.&lt;/P&gt;&lt;P&gt;Here is a simplified example of load script :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FACT:
LOAD * INLINE [
PERIOD, REGION, AMOUNT
1, Europe, 100
1, Asia, 120
1, America, 80
2, Europe, 110
2, Asia, 70
2, America, 150
3, Europe, 80
3, Asia, 100
3, America, 90
4, Europe, 10
4, Asia, 120
6, Europe, 100
6, America, 90
];&lt;/LI-CODE&gt;&lt;P&gt;And here is the formula I used :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=aggr(rangesum(above(Sum(AMOUNT), 0, rowno())), REGION, PERIOD)&lt;/LI-CODE&gt;&lt;P&gt;And the incorrect result :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="capture.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42096i6056388F766AFB22/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Inserting dummy records to cover the gap is a bit complicated in the real context (and not elegant). Do you know if there is an other way to procede ?&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:18:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Stacked-bar-chats-with-cumulative-amount-and-missing-values/m-p/1751583#M57864</guid>
      <dc:creator>fabrice_lattern</dc:creator>
      <dc:date>2024-11-16T01:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chats with cumulative amount and missing values</title>
      <link>https://community.qlik.com/t5/App-Development/Stacked-bar-chats-with-cumulative-amount-and-missing-values/m-p/1751589#M57865</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/33712"&gt;@fabrice_lattern&lt;/a&gt;&amp;nbsp; what is expected results?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 13:01:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Stacked-bar-chats-with-cumulative-amount-and-missing-values/m-p/1751589#M57865</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-12T13:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chats with cumulative amount and missing values</title>
      <link>https://community.qlik.com/t5/App-Development/Stacked-bar-chats-with-cumulative-amount-and-missing-values/m-p/1751791#M57881</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;It is to avoid to have the gap (for example America on period 4 should remain at 320 even if there is no data for America on this period).&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 06:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Stacked-bar-chats-with-cumulative-amount-and-missing-values/m-p/1751791#M57881</guid>
      <dc:creator>fabrice_lattern</dc:creator>
      <dc:date>2020-10-13T06:30:29Z</dc:date>
    </item>
  </channel>
</rss>

