<?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: How to use rank function to sort values from small to large in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-rank-function-to-sort-values-from-small-to-large-in/m-p/1768473#M718602</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/118746"&gt;@Nora104&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=aggr(rank&lt;STRONG&gt;(-sum(indexB))&lt;/STRONG&gt;,Code)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Dec 2020 06:51:51 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2020-12-15T06:51:51Z</dc:date>
    <item>
      <title>How to use rank function to sort values from small to large in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-rank-function-to-sort-values-from-small-to-large-in/m-p/1768462#M718601</link>
      <description>&lt;P&gt;I want to add a rank column to the front so that it will start from small to large by index B：&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 259px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45652iA49CB22E8A7916B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I use the formula:=aggr(rank(sum(indexB)),Code)&lt;/P&gt;&lt;P&gt;But the result is the below, the values are sorted from largest to smallest:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 261px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45653iEBB7BBB137FD0089/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I write&amp;nbsp;the formula to sort from small to large?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 06:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-rank-function-to-sort-values-from-small-to-large-in/m-p/1768462#M718601</guid>
      <dc:creator>Nora104</dc:creator>
      <dc:date>2020-12-15T06:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use rank function to sort values from small to large in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-rank-function-to-sort-values-from-small-to-large-in/m-p/1768473#M718602</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/118746"&gt;@Nora104&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=aggr(rank&lt;STRONG&gt;(-sum(indexB))&lt;/STRONG&gt;,Code)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 06:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-rank-function-to-sort-values-from-small-to-large-in/m-p/1768473#M718602</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-12-15T06:51:51Z</dc:date>
    </item>
  </channel>
</rss>

