<?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 Descending Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Descending-Calculation/m-p/172894#M42284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I may be getting closer, but still can't find a way to have the calculated range accumulate internally. I can use concat to get the range of values returned in descending order, but when I use &lt;I&gt;above&lt;/I&gt; to get the accumulating values, they aren't coming in descending order. Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Dec 2009 05:10:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-08T05:10:10Z</dc:date>
    <item>
      <title>Descending Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Descending-Calculation/m-p/172893#M42283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to build an expression that will take a series of expression results and give me the sum of the top X results. X will be based on number Y.&lt;/P&gt;&lt;P&gt;For example, take this set of results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Occurrence&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;39537&lt;/TD&gt;&lt;TD&gt;118556.10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;24570&lt;/TD&gt;&lt;TD&gt;115666.24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;38604&lt;/TD&gt;&lt;TD&gt;48317.64&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;40729&lt;/TD&gt;&lt;TD&gt;31146.74&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;28534&lt;/TD&gt;&lt;TD&gt;5408.67&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;32292&lt;/TD&gt;&lt;TD&gt;2608.14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;36582&lt;/TD&gt;&lt;TD&gt;1959.76&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;50463&lt;/TD&gt;&lt;TD&gt;1900.01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;32461&lt;/TD&gt;&lt;TD&gt;1716.10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;28001&lt;/TD&gt;&lt;TD&gt;1627.92&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;28777&lt;/TD&gt;&lt;TD&gt;1316.53&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;36647&lt;/TD&gt;&lt;TD&gt;1211.20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If number Y was 100,000, I need the expression to return 118,556.10 for X. If number Y was 200,000, I need the expression to return 234,222.34 for X.&lt;/P&gt;&lt;P&gt;I am trying to return the point at which the sum of values (X) fully exhausts a fund (Y). The variance of these numbers (18,556.10 and 34,222.34 respectively in the examples above) is the figure I need. If the calculation does not sort descending as it is processed, the variance will not be correct.&lt;/P&gt;&lt;P&gt;The place I'm getting stuck is in identifying the limit in the sort order as a returned value. If I can find the break point, I can then use that figure to cap the sum or apply some kind of ranking.&lt;/P&gt;&lt;P&gt;Hopefully that made some sense. Any suggestions would be greatly appreciated!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 23:27:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Descending-Calculation/m-p/172893#M42283</guid>
      <dc:creator />
      <dc:date>2009-12-02T23:27:46Z</dc:date>
    </item>
    <item>
      <title>Descending Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Descending-Calculation/m-p/172894#M42284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I may be getting closer, but still can't find a way to have the calculated range accumulate internally. I can use concat to get the range of values returned in descending order, but when I use &lt;I&gt;above&lt;/I&gt; to get the accumulating values, they aren't coming in descending order. Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 05:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Descending-Calculation/m-p/172894#M42284</guid>
      <dc:creator />
      <dc:date>2009-12-08T05:10:10Z</dc:date>
    </item>
  </channel>
</rss>

