<?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 Reduce data in script to top 50 customers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reduce-data-in-script-to-top-50-customers/m-p/1404281#M425444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a large dataset but customer revenues for the top 50 customers are relevant, while the others are all insignificant and just noise. Is there a way to only load the top 50 customers by revenue in script and drop the rest?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Oct 2017 12:57:17 GMT</pubDate>
    <dc:creator>sifatnabil</dc:creator>
    <dc:date>2017-10-20T12:57:17Z</dc:date>
    <item>
      <title>Reduce data in script to top 50 customers</title>
      <link>https://community.qlik.com/t5/QlikView/Reduce-data-in-script-to-top-50-customers/m-p/1404281#M425444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a large dataset but customer revenues for the top 50 customers are relevant, while the others are all insignificant and just noise. Is there a way to only load the top 50 customers by revenue in script and drop the rest?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 12:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reduce-data-in-script-to-top-50-customers/m-p/1404281#M425444</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2017-10-20T12:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce data in script to top 50 customers</title>
      <link>https://community.qlik.com/t5/QlikView/Reduce-data-in-script-to-top-50-customers/m-p/1404282#M425445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose you have this table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoice with Customer and Amount Field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every Database has an instruction to exctract the top n values (There are "Limit" or "TOP" Keawords for instance)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a query like this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select customer, sum(Amount) as somma from invoice group by customer order by somma desc limit 50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;extract the first 50 then do an inner join of this one with the complete table of invoice (invoice is obviously for example)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 13:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reduce-data-in-script-to-top-50-customers/m-p/1404282#M425445</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2017-10-20T13:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce data in script to top 50 customers</title>
      <link>https://community.qlik.com/t5/QlikView/Reduce-data-in-script-to-top-50-customers/m-p/1404283#M425446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sifat,&lt;/P&gt;&lt;P&gt;Maybe something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Top50:&lt;/P&gt;&lt;P&gt;LOAD Customer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderValue&lt;/P&gt;&lt;P&gt;From Orders;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggregate:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Customer,&lt;/P&gt;&lt;P&gt;Sum(OrderValue) as TotalSales&lt;/P&gt;&lt;P&gt;Resident Top50 Group by Customer;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner Join(Top50)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Customer&lt;/P&gt;&lt;P&gt;Resident Aggregate Where RecNo() &amp;lt;=50 Order by TotalSales desc ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Aggregate;&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;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 13:20:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reduce-data-in-script-to-top-50-customers/m-p/1404283#M425446</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-10-20T13:20:31Z</dc:date>
    </item>
  </channel>
</rss>

