<?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: Line Graph Accumulation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Line-Graph-Accumulation/m-p/2534495#M108383</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/109463"&gt;@johnnyjohn&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try using aggr() with your field ordering&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;aggr(&lt;BR /&gt;RangeSum(&lt;BR /&gt;above(&lt;BR /&gt;Sum(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;n5_value_EUR&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;BR /&gt;/&lt;BR /&gt;sum( total &amp;lt;&lt;STRONG&gt;n0_marketcap_group&lt;/STRONG&gt;&amp;gt; &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;n5_value_EUR&lt;/STRONG&gt;&lt;/FONT&gt;),0,RowNo())),&lt;BR /&gt;(&lt;STRONG&gt;n0_marketcap_group&lt;/STRONG&gt;,(=Sum(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;n5_value_EUR&lt;/STRONG&gt;&lt;/FONT&gt;),Desc)),&lt;FONT color="#FFCC00"&gt;&lt;STRONG&gt;Clock&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Oct 2025 19:58:39 GMT</pubDate>
    <dc:creator>MatheusC</dc:creator>
    <dc:date>2025-10-27T19:58:39Z</dc:date>
    <item>
      <title>Line Graph Accumulation</title>
      <link>https://community.qlik.com/t5/App-Development/Line-Graph-Accumulation/m-p/2534492#M108381</link>
      <description>&lt;P&gt;Apologies for earlier post, I've managed to distill down the issue significantly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see in the data table below, using this expression below, I've managed to calculate the cumulative sum of the&amp;nbsp;&lt;STRONG&gt;n5_value_EUR&lt;/STRONG&gt; relative to the &lt;STRONG&gt;n0_marketcap_group&lt;/STRONG&gt; - so both market caps add up to 1 at the end of their respective &lt;STRONG&gt;clock&lt;/STRONG&gt; (up to 1).&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this works in the table viz.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RangeSum(Above( Sum(n5_value_EUR), 0, RowNo()))
/
Sum( TOTAL &amp;lt;n0_marketcap_group&amp;gt; n5_value_EUR )&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnnyjohn_0-1761585368454.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184493i10177B663D3999E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johnnyjohn_0-1761585368454.png" alt="johnnyjohn_0-1761585368454.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Trying to put this same measure in a line chart, it breaks, and doesnt actually accumulate across the dimensions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnnyjohn_1-1761585513313.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184494iDD44724BD1C66CA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johnnyjohn_1-1761585513313.png" alt="johnnyjohn_1-1761585513313.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on how to do this on a line chart ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 17:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-Graph-Accumulation/m-p/2534492#M108381</guid>
      <dc:creator>johnnyjohn</dc:creator>
      <dc:date>2025-10-27T17:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Line Graph Accumulation</title>
      <link>https://community.qlik.com/t5/App-Development/Line-Graph-Accumulation/m-p/2534495#M108383</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/109463"&gt;@johnnyjohn&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try using aggr() with your field ordering&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;aggr(&lt;BR /&gt;RangeSum(&lt;BR /&gt;above(&lt;BR /&gt;Sum(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;n5_value_EUR&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;BR /&gt;/&lt;BR /&gt;sum( total &amp;lt;&lt;STRONG&gt;n0_marketcap_group&lt;/STRONG&gt;&amp;gt; &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;n5_value_EUR&lt;/STRONG&gt;&lt;/FONT&gt;),0,RowNo())),&lt;BR /&gt;(&lt;STRONG&gt;n0_marketcap_group&lt;/STRONG&gt;,(=Sum(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;n5_value_EUR&lt;/STRONG&gt;&lt;/FONT&gt;),Desc)),&lt;FONT color="#FFCC00"&gt;&lt;STRONG&gt;Clock&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 19:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-Graph-Accumulation/m-p/2534495#M108383</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2025-10-27T19:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Line Graph Accumulation</title>
      <link>https://community.qlik.com/t5/App-Development/Line-Graph-Accumulation/m-p/2534525#M108394</link>
      <description>&lt;P&gt;Hello, thanks for the suggestion, no luck with the expression unfortunately. Below is a simple sample dataset, just in case it helps you create the expression for the line graph.&lt;/P&gt;&lt;P&gt;On a line chart, Group=Clock (continuous axis), Line=n0_marketcap_group, Height Of Line= the expression that makes this relative cumulative sum per market cap.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;+-------------+------------------+----------------+
|n5_value_EUR |n0_marketcap_group| Clock          |
+-------------+------------------+----------------+
| 5082        | Mid              | 0.00           |
| 1436        | Mid              | 0.03           |
| 1286        | Mid              | 0.23           |
| 2275        | Mid              | 0.23           |
| 1483        | Mid              | 0.54           |
| 1755        | Mid              | 0.54           |
| 1628        | Mid              | 1.00           |
| 39759       | Small            | 0.00           |
| 1904        | Small            | 0.50           |
| 364         | Small            | 0.50           |
| 3683        | Small            | 0.50           |
| 1281        | Small            | 0.53           |
| 618         | Small            | 1.00           |
+-------------+------------------+----------------+&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 07:11:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-Graph-Accumulation/m-p/2534525#M108394</guid>
      <dc:creator>johnnyjohn</dc:creator>
      <dc:date>2025-10-28T07:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Line Graph Accumulation</title>
      <link>https://community.qlik.com/t5/App-Development/Line-Graph-Accumulation/m-p/2534618#M108407</link>
      <description>&lt;P&gt;I ran some tests here and adjusted how it sorts and assigns the correct formatting to the fields.&lt;BR /&gt;&lt;BR /&gt;Aggr(Rangesum(Above(Sum(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;n5_value_EUR&lt;/STRONG&gt;&lt;/FONT&gt;)/Sum(TOTAL &amp;lt;&lt;STRONG&gt;n0_marketcap_group&lt;/STRONG&gt;&amp;gt; &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;n5_value_EUR&lt;/STRONG&gt;&lt;/FONT&gt;),0,RowNo())),(&lt;STRONG&gt;n0_marketcap_group, (TEXT)&lt;/STRONG&gt;),&lt;FONT color="#FFCC00"&gt;&lt;STRONG&gt;(Clock, (NUMERIC))&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To follow this continuous line, adjust &lt;STRONG&gt;Appearance &amp;gt; Presentation &amp;gt; Missing values ​​(Show as connections)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatheusC_1-1761673764887.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184527iB6D1358D31E58211/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatheusC_1-1761673764887.png" alt="MatheusC_1-1761673764887.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 17:51:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-Graph-Accumulation/m-p/2534618#M108407</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2025-10-28T17:51:19Z</dc:date>
    </item>
  </channel>
</rss>

