<?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 display top 5 values by using of rank function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-display-top-5-values-by-using-of-rank-function/m-p/770608#M273574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did as suggested. But my problem now is, it is taking top 5 as 100% rather than whole, and dividing them as per the share.&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/188697_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;I need each one of the exact share(%) in the whole sum i.e, SUM(Sales).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br, Balanandam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jan 2018 10:29:28 GMT</pubDate>
    <dc:creator>balanandam</dc:creator>
    <dc:date>2018-01-03T10:29:28Z</dc:date>
    <item>
      <title>how to display top 5 values by using of rank function</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-display-top-5-values-by-using-of-rank-function/m-p/770605#M273571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;&amp;nbsp; How to display top 5 values by using of rank function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 09:52:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-display-top-5-values-by-using-of-rank-function/m-p/770605#M273571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-05T09:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to display top 5 values by using of rank function</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-display-top-5-values-by-using-of-rank-function/m-p/770606#M273572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Considering that you have customer and sales data and you want top 5 customers by sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a Straight Table&lt;/P&gt;&lt;P&gt;Use Calculated Dimension&lt;/P&gt;&lt;P&gt;=IF(Aggr(Rank(SUM(Sales),4),Customer)&amp;lt;=5,Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;SUM(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Below in your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer, Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, 120&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, 300&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D, 400&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; E, 75&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F, 50&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; G, 125&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; H, 2000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I, 250&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 09:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-display-top-5-values-by-using-of-rank-function/m-p/770606#M273572</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-11-05T09:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to display top 5 values by using of rank function</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-display-top-5-values-by-using-of-rank-function/m-p/770607#M273573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another Way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a Straight Table&lt;/P&gt;&lt;P&gt;Dimension &lt;/P&gt;&lt;P&gt;Customer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Customer = {"=Rank(SUM(Sales),4)&amp;lt;=5"}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 10:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-display-top-5-values-by-using-of-rank-function/m-p/770607#M273573</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-11-05T10:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to display top 5 values by using of rank function</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-display-top-5-values-by-using-of-rank-function/m-p/770608#M273574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did as suggested. But my problem now is, it is taking top 5 as 100% rather than whole, and dividing them as per the share.&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/188697_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;I need each one of the exact share(%) in the whole sum i.e, SUM(Sales).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br, Balanandam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 10:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-display-top-5-values-by-using-of-rank-function/m-p/770608#M273574</guid>
      <dc:creator>balanandam</dc:creator>
      <dc:date>2018-01-03T10:29:28Z</dc:date>
    </item>
  </channel>
</rss>

