<?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: Rank Sum issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674285#M244839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Those didn't work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry! Let me add some more clarity to my question. This amount is always negative in this instance, and so when I input a number in the input box say 5 the expression I required is to calculate the top amount by the Name(dimension).The expression works fine with the sales fieldname which is always a positive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jul 2014 11:58:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-29T11:58:40Z</dc:date>
    <item>
      <title>Rank Sum issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674283#M244837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;The expression below works fine when the "Amount" field is a positive number looking for the solution for the reverse when it's negative.Tried to negate the sum function but it not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Name = {"=rank(sum(Amount))&amp;lt;=$(Top)"}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;where $(Top) is an input box variable &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 11:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674283#M244837</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-29T11:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Sum issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674284#M244838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;What you want when the amount is negative values? May be&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;Name = {"=rank(sum(If(Amount&amp;lt;0,-Amount,Amount)))&amp;lt;=$(Top)"}&amp;gt;} Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;Name = {"=rank(sum(If(Amount&amp;lt;0,-Amount,Amount)))&amp;lt;=$(Top)"}&amp;gt;} IF(Amount&amp;lt;0,-Amount,Amount))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 11:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674284#M244838</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-29T11:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Sum issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674285#M244839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Those didn't work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry! Let me add some more clarity to my question. This amount is always negative in this instance, and so when I input a number in the input box say 5 the expression I required is to calculate the top amount by the Name(dimension).The expression works fine with the sales fieldname which is always a positive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 11:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674285#M244839</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-29T11:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Sum issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674286#M244840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide sample data in excel file along with required output... Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 12:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674286#M244840</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-29T12:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Sum issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674287#M244841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;Hi couldn't attach the file kindly make use of the screen shot.Thanks&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="6604" data-externalid="" data-presence="null" data-userid="120618" data-username="MRKachhiaIMP" href="https://community.qlik.com/people/MRKachhiaIMP"&gt;&lt;IMG __jive_id="63328" alt="RANK SUM.PNG.png" class="jive-image" src="/legacyfs/online/63328_RANK SUM.PNG.png" style="width: 620px; height: 295px;" /&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 12:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674287#M244841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-29T12:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Sum issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674288#M244842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a Straight Table&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Name = {"=Rank(SUM(Amount),4)&amp;lt;=5"}&amp;gt;}Amount) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM({&amp;lt;Name = {"=Rank(SUM(Amount),4)&amp;lt;=$(vTop)"}&amp;gt;}Amount) &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 12:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674288#M244842</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-29T12:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Sum issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674289#M244843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That didnt work either.I have already created already a straight table and used the dimension limits to make it work. I show only the smallest&amp;nbsp; and the value is the variable $(Top) which a dynamic for user input.&lt;/P&gt;&lt;P&gt;Now I want to replicate the this in an expression and display in a Text box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 13:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674289#M244843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-29T13:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Sum issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674290#M244844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;SUM({&amp;lt;Name = {"=Rank(SUM(Amount),4)&amp;lt;=$(vTop)"}&amp;gt;}Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 13:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674290#M244844</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-29T13:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Sum issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674291#M244845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Manish Kachia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quite unfortunate it's not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 14:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674291#M244845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-29T14:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Sum issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674292#M244846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you want to show in List BOX? Total of $(vTOP) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 15:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674292#M244846</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-29T15:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Sum issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674293#M244847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly! The total amounts of the $(vTop).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 15:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674293#M244847</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-29T15:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Rank Sum issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674294#M244848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check enclosed file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 15:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674294#M244848</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-29T15:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Rank Sum issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674295#M244849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Appreciated.Curious to know what the "Number 4 " does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a million once again &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 16:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674295#M244849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-29T16:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Sum issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674296#M244850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor248"&gt;&lt;/A&gt;&lt;A name="rank"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;rank(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;[ &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; ] expression [ , mode [, format ] ]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Evaluates &lt;SPAN style="font-style: italic;"&gt;expression&lt;/SPAN&gt;, compares the result with the result of the other rows containing the current column segment and returns the ranking of the current row within the segment. For bitmap charts, the current column segment is defined as it appears in the chart's straight table equivalent (Actually all QlikView charts have a straight table equivalent with the exception of the pivot table which has a more complex structure). &lt;/P&gt;&lt;P&gt;If the chart is one-dimensional or if the &lt;SPAN style="font-style: italic;"&gt;expression&lt;/SPAN&gt; is preceded by the &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; qualifier, the current column segment is always equal to the entire column. If the table or table equivalent has multiple vertical dimensions, the current column segment will include only rows with the same values as the current row in all dimension columns except for the column showing the last dimension in the inter field sort order. &lt;/P&gt;&lt;P&gt;The ranking is returned as a dual value, which in the case when each row has a unique ranking will be an integer between 1 and the number of rows in the current column segment. &lt;/P&gt;&lt;P&gt;In the case where several rows share the same ranking, the text and number representation can be controlled as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second parameter &lt;SPAN style="font-style: italic;"&gt;mode&lt;/SPAN&gt; specifies the number representation of the function result. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: italic;"&gt;mode&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE cellspacing="0" class="TableStyle-LeftBold" style="margin-right: auto;"&gt;&lt;TBODY&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;0 &lt;SPAN class="normal"&gt;(default)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;If all ranks within the sharing group fall on the low side of the middle value of the entire ranking, all rows get the lowest rank within the sharing group. &lt;BR /&gt;If all ranks within the sharing group fall on the high side of the middle value of the entire ranking, all rows get the highest rank within the sharing group. &lt;BR /&gt;If ranks within the sharing group span over the middle value of the entire ranking, all rows get the value corresponding to the average of the top and bottom ranking in the entire column segment. &lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;1&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Lowest rank on all rows. &lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;2&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Average rank on all rows. &lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;3&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Highest rank on all rows. &lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;4&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Lowest rank on first row, then incremented by one for each row. &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 16:22:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Sum-issue/m-p/674296#M244850</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-29T16:22:44Z</dc:date>
    </item>
  </channel>
</rss>

