<?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: Straight table - sum of rows with higher ID in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-of-rows-with-higher-ID/m-p/1442576#M432709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With 11.2 you are left with only 3 options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Sort ID in descending order in the script and use this&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Aggr(RangeSum(Above(Sum(Value), 1, RowNo())), ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Do nothing in the script, but sort your chart correctly and then use this&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RangeSum(Above(Sum(Value), 1, RowNo()))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Use &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Nov 2017 16:08:11 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-11-22T16:08:11Z</dc:date>
    <item>
      <title>Straight table - sum of rows with higher ID</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-of-rows-with-higher-ID/m-p/1442569#M432702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having a simple table with columns ID and Value. I'm trying to find Expression for a straight table which for each line it will sum values from all others rows which have ID greater than ID of the current line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So like&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;LookingForThis&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10 (From ID = 5)&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15 (From ID = 5 and 4)&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22 (ID 5, 4 and 3)&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 28 (ID , 4, 3 and 2&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I hope it is clear. The real example is a bit more complicated but this is the core I believe.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I was thinking about Set Analysis like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;sum({&amp;lt;ID = {"&amp;gt;&lt;EM&gt;CurrentID&lt;/EM&gt;"}&amp;gt;} Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;but the issue is that I don't know how to get the &lt;EM style="font-size: 13.3333px;"&gt;CurrentID &lt;/EM&gt;in SA.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks for all reactions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Jindra&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 15:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-of-rows-with-higher-ID/m-p/1442569#M432702</guid>
      <dc:creator>jindrichk</dc:creator>
      <dc:date>2017-11-22T15:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum of rows with higher ID</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-of-rows-with-higher-ID/m-p/1442570#M432703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your table is sorted as shown, you can use the above() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 15:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-of-rows-with-higher-ID/m-p/1442570#M432703</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-11-22T15:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum of rows with higher ID</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-of-rows-with-higher-ID/m-p/1442571#M432704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tank you m w.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, it is usually not. There are other fields used for sorting. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 15:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-of-rows-with-higher-ID/m-p/1442571#M432704</guid>
      <dc:creator>jindrichk</dc:creator>
      <dc:date>2017-11-22T15:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum of rows with higher ID</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-of-rows-with-higher-ID/m-p/1442572#M432705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Above(Sum(Value), 1, RowNo()))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 15:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-of-rows-with-higher-ID/m-p/1442572#M432705</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-22T15:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum of rows with higher ID</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-of-rows-with-higher-ID/m-p/1442573#M432706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that it does not have to be always sorted like this. The higher ID rows can be also below the current line. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 15:57:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-of-rows-with-higher-ID/m-p/1442573#M432706</guid>
      <dc:creator>jindrichk</dc:creator>
      <dc:date>2017-11-22T15:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum of rows with higher ID</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-of-rows-with-higher-ID/m-p/1442574#M432707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have QV12 or above? If you do, then you can do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Aggr(RangeSum(Above(Sum(Value), 1, RowNo())), (ID, (NUMERIC, desc)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 16:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-of-rows-with-higher-ID/m-p/1442574#M432707</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-22T16:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum of rows with higher ID</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-of-rows-with-higher-ID/m-p/1442575#M432708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately on version 11.20.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 16:05:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-of-rows-with-higher-ID/m-p/1442575#M432708</guid>
      <dc:creator>jindrichk</dc:creator>
      <dc:date>2017-11-22T16:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum of rows with higher ID</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-of-rows-with-higher-ID/m-p/1442576#M432709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With 11.2 you are left with only 3 options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Sort ID in descending order in the script and use this&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Aggr(RangeSum(Above(Sum(Value), 1, RowNo())), ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Do nothing in the script, but sort your chart correctly and then use this&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RangeSum(Above(Sum(Value), 1, RowNo()))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Use &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 16:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-of-rows-with-higher-ID/m-p/1442576#M432709</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-22T16:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum of rows with higher ID</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-of-rows-with-higher-ID/m-p/1442577#M432710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I'm going with doing it in a script. It will restrict some possible selections for a user but will give me correct results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 09:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-of-rows-with-higher-ID/m-p/1442577#M432710</guid>
      <dc:creator>jindrichk</dc:creator>
      <dc:date>2017-11-24T09:53:57Z</dc:date>
    </item>
  </channel>
</rss>

