<?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 Problem with Rank Function, Column Order in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-Rank-Function-Column-Order/m-p/1248561#M859762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see attached. The Rank() function returns the data I want to see as long as it's in the second (or greater) column position in the chart. If I move it to the first column position, it fixes the sort order in an undesirable fashion and I can't restore it. (Specifically it shows 10 through 1 in descending order when re-sorted, but not 1 through 10 as desired.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attachment uses the QlikView provided sample sales data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BONUS QUESTION: How can I get the Total to show the total of only the values shown (Top 10 versus the whole set)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Problem with Rank Function, Column Order</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Rank-Function-Column-Order/m-p/1248561#M859762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see attached. The Rank() function returns the data I want to see as long as it's in the second (or greater) column position in the chart. If I move it to the first column position, it fixes the sort order in an undesirable fashion and I can't restore it. (Specifically it shows 10 through 1 in descending order when re-sorted, but not 1 through 10 as desired.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attachment uses the QlikView provided sample sales data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BONUS QUESTION: How can I get the Total to show the total of only the values shown (Top 10 versus the whole set)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Rank-Function-Column-Order/m-p/1248561#M859762</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Rank Function, Column Order</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Rank-Function-Column-Order/m-p/1248562#M859763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the attached file and hope this resolves your issue...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 20:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Rank-Function-Column-Order/m-p/1248562#M859763</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2017-01-27T20:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Rank Function, Column Order</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Rank-Function-Column-Order/m-p/1248563#M859764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this for Rank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Num(Rank(Total Sum(Sales),4))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Total Sales u can use&lt;/P&gt;&lt;P&gt;SUM(Total Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(Sales)/SUM(TOTAL Sales) will give you % to Total Sales for each Customer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 20:16:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Rank-Function-Column-Order/m-p/1248563#M859764</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-01-27T20:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Rank Function, Column Order</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Rank-Function-Column-Order/m-p/1248564#M859765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove the dimension limit &lt;/P&gt;&lt;P&gt;Replace the dimension Customer with&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =if(aggr(rank(sum(Sales)),Customer)&amp;lt;=10,Customer)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151104_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 20:35:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Rank-Function-Column-Order/m-p/1248564#M859765</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2017-01-27T20:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Rank Function, Column Order</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Rank-Function-Column-Order/m-p/1248565#M859766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. That seems to work except re-sorting the sales eventually brings up sales from the bottom. The total as Sum of Rows works better. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 14:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Rank-Function-Column-Order/m-p/1248565#M859766</guid>
      <dc:creator />
      <dc:date>2017-01-31T14:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Rank Function, Column Order</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Rank-Function-Column-Order/m-p/1248566#M859767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. Initially gives good values, but re-sorting doesn't work very well. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 15:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Rank-Function-Column-Order/m-p/1248566#M859767</guid>
      <dc:creator />
      <dc:date>2017-01-31T15:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Rank Function, Column Order</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Rank-Function-Column-Order/m-p/1248567#M859768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works best and re-sorting works as expected. The NULL value even works as a rollup of "Others" but is easily suppressed. Thank you! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 15:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Rank-Function-Column-Order/m-p/1248567#M859768</guid>
      <dc:creator />
      <dc:date>2017-01-31T15:04:16Z</dc:date>
    </item>
  </channel>
</rss>

