<?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: Sum Aggregation Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-Aggregation-Problem/m-p/478303#M1139806</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how you get the second column, it would be good to get some input data as well, or even better, post a small sample app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, you can get a cumulative sum of your second column using rangesum(above( EXPRESSION,0,rowno() )),&lt;/P&gt;&lt;P&gt;so try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=1.00 - rangesum(above( YOURSECONDCOLUMNEXPRESSION ,0,rowno()) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: if you want to exclude the current dimension line from your aggregation, use an offset of 1:&lt;/P&gt;&lt;P&gt;=1.00 - rangesum(above( YOURSECONDCOLUMNEXPRESSION , 1,rowno()) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Sep 2013 15:50:39 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-09-25T15:50:39Z</dc:date>
    <item>
      <title>Sum Aggregation Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Aggregation-Problem/m-p/478302#M1139805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the first to columns below, and need a way to create the third column. The sum column is the percentage of scores divided by the total number of records. I need the third column to be the rank order of the score percentages. In other words, 100% of scores are 1 or higher, 97% are 2 or higher, and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="192"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="44"&gt;Score&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="84"&gt;Sum(If(X),1,0)&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;Need&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.03&lt;/TD&gt;&lt;TD align="right" class="xl68"&gt;1.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.02&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;0.97&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.05&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;0.95&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.06&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;0.90&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.07&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;0.84&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.10&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;0.77&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.09&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;0.66&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.08&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;0.58&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.09&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;0.50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.07&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;0.41&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.04&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;0.34&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;12&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.05&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;0.31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;13&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.06&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;0.26&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;14&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.09&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;0.19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;15&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.06&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;0.11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;16&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.03&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;0.05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;17&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.01&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;0.02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;18&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.01&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;0.01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;19&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.00&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.00&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;21&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0.00&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none;"&gt;0.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 15:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Aggregation-Problem/m-p/478302#M1139805</guid>
      <dc:creator />
      <dc:date>2013-09-25T15:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Aggregation Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Aggregation-Problem/m-p/478303#M1139806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how you get the second column, it would be good to get some input data as well, or even better, post a small sample app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, you can get a cumulative sum of your second column using rangesum(above( EXPRESSION,0,rowno() )),&lt;/P&gt;&lt;P&gt;so try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=1.00 - rangesum(above( YOURSECONDCOLUMNEXPRESSION ,0,rowno()) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: if you want to exclude the current dimension line from your aggregation, use an offset of 1:&lt;/P&gt;&lt;P&gt;=1.00 - rangesum(above( YOURSECONDCOLUMNEXPRESSION , 1,rowno()) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 15:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Aggregation-Problem/m-p/478303#M1139806</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-25T15:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Aggregation Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Aggregation-Problem/m-p/478304#M1139807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. That is exactly what i needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 16:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Aggregation-Problem/m-p/478304#M1139807</guid>
      <dc:creator />
      <dc:date>2013-09-25T16:08:13Z</dc:date>
    </item>
  </channel>
</rss>

