<?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 Load top 10 Records based on numeric columns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-top-10-Records-based-on-numeric-columns/m-p/192575#M54193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am loading Customers and their amounts from database. I have few reports which are for Country, Industry etc. In one of them I am suppose to display top 10 customer according to their amounts (e.g. Load Taken). Rest of them should be considered as 'Others' in the pivot table. Using pie chart I can do this by setting intervals such that customers with less amount would always be part of 'Others' in the chart.&lt;/P&gt;&lt;P&gt;However I want to display this as table/pivot: Top 10 customer with their amounts. Rest all customers should be shown as Other's and amounts should be added up.&lt;/P&gt;&lt;P&gt;I thought of initially doing it in the script: Using SQL load top 10 customers and consider rest as others. Not sure if would be able to achieve it this way, but thought may be I shall give a try.&lt;/P&gt;&lt;P&gt;Is there any other option to do it - without using SQLs? Anyone faced this before?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Sep 2010 11:56:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-08T11:56:44Z</dc:date>
    <item>
      <title>Load top 10 Records based on numeric columns</title>
      <link>https://community.qlik.com/t5/QlikView/Load-top-10-Records-based-on-numeric-columns/m-p/192575#M54193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am loading Customers and their amounts from database. I have few reports which are for Country, Industry etc. In one of them I am suppose to display top 10 customer according to their amounts (e.g. Load Taken). Rest of them should be considered as 'Others' in the pivot table. Using pie chart I can do this by setting intervals such that customers with less amount would always be part of 'Others' in the chart.&lt;/P&gt;&lt;P&gt;However I want to display this as table/pivot: Top 10 customer with their amounts. Rest all customers should be shown as Other's and amounts should be added up.&lt;/P&gt;&lt;P&gt;I thought of initially doing it in the script: Using SQL load top 10 customers and consider rest as others. Not sure if would be able to achieve it this way, but thought may be I shall give a try.&lt;/P&gt;&lt;P&gt;Is there any other option to do it - without using SQLs? Anyone faced this before?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 11:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-top-10-Records-based-on-numeric-columns/m-p/192575#M54193</guid>
      <dc:creator />
      <dc:date>2010-09-08T11:56:44Z</dc:date>
    </item>
    <item>
      <title>Load top 10 Records based on numeric columns</title>
      <link>https://community.qlik.com/t5/QlikView/Load-top-10-Records-based-on-numeric-columns/m-p/192576#M54194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I don't know how to handle this scenario in the chart. I have attached an application that uses Load Order By and the Peek command to create a pivot chart in the format that you want.&lt;/P&gt;&lt;P&gt;Let me know if this helps.&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 20:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-top-10-Records-based-on-numeric-columns/m-p/192576#M54194</guid>
      <dc:creator>john_duffy</dc:creator>
      <dc:date>2010-09-08T20:26:46Z</dc:date>
    </item>
    <item>
      <title>Load top 10 Records based on numeric columns</title>
      <link>https://community.qlik.com/t5/QlikView/Load-top-10-Records-based-on-numeric-columns/m-p/192577#M54195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is actually pretty simple to do using the rank() function. Create a calculated dimension that looks something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;aggr(&lt;BR /&gt; if(rank(total sum(amount))&amp;lt;=10,[Customer Name],'Other'),&lt;BR /&gt; [Customer Name]&lt;BR /&gt;)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The expression would be sum(amount) or something similar.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 20:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-top-10-Records-based-on-numeric-columns/m-p/192577#M54195</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-09-08T20:51:43Z</dc:date>
    </item>
    <item>
      <title>Load top 10 Records based on numeric columns</title>
      <link>https://community.qlik.com/t5/QlikView/Load-top-10-Records-based-on-numeric-columns/m-p/192578#M54196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vlad. It worked wonders and I am able to get the expected results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 09:08:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-top-10-Records-based-on-numeric-columns/m-p/192578#M54196</guid>
      <dc:creator />
      <dc:date>2010-09-09T09:08:54Z</dc:date>
    </item>
  </channel>
</rss>

