<?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: Group by top N in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-by-top-N/m-p/1339479#M412765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think just rearrange a bit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;aggr(if(rank(sum(Sales))&amp;lt;=100,'Top 100','Other'),[Customer ID])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jun 2017 22:31:16 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2017-06-08T22:31:16Z</dc:date>
    <item>
      <title>Group by top N</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-top-N/m-p/1339478#M412764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a pie chart with my top 100 customers by sales grouped in a slice and rest customers as another slice. And show the percentage of total sales for the two groups. Let's suppose my data have customer ID and sales amount as two fields. Is there a way to create such as pie with chart expression rather than load script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create an dimension like this, but it doesn't work...&lt;/P&gt;&lt;P&gt;i&lt;SPAN style="color: #0000ff;"&gt;f&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;rank&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Sales&lt;/SPAN&gt;),&lt;SPAN style="color: #800000;"&gt;[Customer ID]&lt;/SPAN&gt;))&amp;lt;100,'Top 100','Other') &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;Yvonne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 21:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-top-N/m-p/1339478#M412764</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-08T21:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Group by top N</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-top-N/m-p/1339479#M412765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think just rearrange a bit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;aggr(if(rank(sum(Sales))&amp;lt;=100,'Top 100','Other'),[Customer ID])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 22:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-top-N/m-p/1339479#M412765</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2017-06-08T22:31:16Z</dc:date>
    </item>
  </channel>
</rss>

