<?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 Display top 5 and the rest in Others in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Display-top-5-and-the-rest-in-Others/m-p/310278#M114565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks a lot Miguel Angel exactly matches with my requirement.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Oct 2011 12:19:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-04T12:19:42Z</dc:date>
    <item>
      <title>Display top 5 and the rest in Others</title>
      <link>https://community.qlik.com/t5/QlikView/Display-top-5-and-the-rest-in-Others/m-p/310274#M114561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Bar Chart, I would like to display the top 5 of the carrier codes and their count of invoices and the rest of the carrier codes should group it in the Others column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example I have attached the QV file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 07:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-top-5-and-the-rest-in-Others/m-p/310274#M114561</guid>
      <dc:creator />
      <dc:date>2011-10-04T07:06:41Z</dc:date>
    </item>
    <item>
      <title>Display top 5 and the rest in Others</title>
      <link>https://community.qlik.com/t5/QlikView/Display-top-5-and-the-rest-in-Others/m-p/310275#M114562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve this with the Pie chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't found a solution in the bar chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 07:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-top-5-and-the-rest-in-Others/m-p/310275#M114562</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2011-10-04T07:29:39Z</dc:date>
    </item>
    <item>
      <title>Display top 5 and the rest in Others</title>
      <link>https://community.qlik.com/t5/QlikView/Display-top-5-and-the-rest-in-Others/m-p/310276#M114563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On Presentation tab, set Max Visible Number to 5, and check Show Others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 07:45:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-top-5-and-the-rest-in-Others/m-p/310276#M114563</guid>
      <dc:creator>kji</dc:creator>
      <dc:date>2011-10-04T07:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Display top 5 and the rest in Others</title>
      <link>https://community.qlik.com/t5/QlikView/Display-top-5-and-the-rest-in-Others/m-p/310277#M114564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the following calculated dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=If(Match([Carrier Code],&lt;/P&gt;&lt;P&gt;$(=Chr(39) &amp;amp; Concat(If(Aggr(Rank(Sum([Number of Invoices]), 4, 1), [Carrier Code]) &amp;lt; 6 &lt;/P&gt;&lt;P&gt;, [Carrier Code]), Chr(39) &amp;amp; Chr(44) &amp;amp; Chr(39)) &amp;amp; Chr(39))) &amp;gt; 0, [Carrier Code], 'Others')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or the more simple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=If(Aggr(Rank(Sum([Number of Invoices]), 4, 1), [Carrier Code]) &amp;lt; 6, [Carrier Code], 'Others')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference between this and the above is that when you select in the chart using the first dimension, you will be selecting only values in the field "Carrier Code". In the second, although it seems the same and it will work as well, you will be selecting the actual aggregation instead of the value of "Carrier Code" and that may return unexpected results in the other charts, that's why I prefer to use the former.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the following expression instead of the existing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Sum([Number of Invoices])&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will return the top 5 and their invoices and the rest of Carriers under "Others".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 07:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-top-5-and-the-rest-in-Others/m-p/310277#M114564</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-04T07:52:56Z</dc:date>
    </item>
    <item>
      <title>Display top 5 and the rest in Others</title>
      <link>https://community.qlik.com/t5/QlikView/Display-top-5-and-the-rest-in-Others/m-p/310278#M114565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks a lot Miguel Angel exactly matches with my requirement.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 12:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-top-5-and-the-rest-in-Others/m-p/310278#M114565</guid>
      <dc:creator />
      <dc:date>2011-10-04T12:19:42Z</dc:date>
    </item>
  </channel>
</rss>

