<?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: Limit to Top 10 in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Limit-to-Top-10-in-Pivot-Table/m-p/378665#M494912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might use the rank function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(if(rank(&lt;SPAN style="color: #636363; font-family: Arial; font-size: 11.818181991577148px; background-color: #eef4f9;"&gt;count(WP_CaseTable.Number)&lt;/SPAN&gt;)&amp;lt;=10,&lt;SPAN style="color: #636363; font-family: Arial; font-size: 11.818181991577148px; background-color: #eef4f9;"&gt;count(WP_CaseTable.Number)&lt;/SPAN&gt;), [&lt;SPAN style="color: #636363; font-family: Arial; font-size: 11.818181991577148px; background-color: #eef4f9;"&gt;Requesting Phsycian&lt;/SPAN&gt;],[&lt;SPAN style="color: #636363; font-family: Arial; font-size: 11.818181991577148px; background-color: #eef4f9;"&gt;Referring Physician&lt;/SPAN&gt;]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2012 19:31:12 GMT</pubDate>
    <dc:creator>bgerchikov</dc:creator>
    <dc:date>2012-08-16T19:31:12Z</dc:date>
    <item>
      <title>Limit to Top 10 in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-to-Top-10-in-Pivot-Table/m-p/378664#M494911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Pivot table to counts to total number of referred physicians to Requesting physicians. How would I limit the view in this table to the Top 10 in count volume?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My dimensions are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requesting Phsycian&lt;/P&gt;&lt;P&gt;Referring Physician&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Expression is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(WP_CaseTable.Number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I limit to top 10 by total count?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="20322" class="jive-image" alt="Top.png" src="https://community.qlik.com/legacyfs/online/20322_Top.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 18:40:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-to-Top-10-in-Pivot-Table/m-p/378664#M494911</guid>
      <dc:creator />
      <dc:date>2012-08-16T18:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Limit to Top 10 in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-to-Top-10-in-Pivot-Table/m-p/378665#M494912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might use the rank function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(if(rank(&lt;SPAN style="color: #636363; font-family: Arial; font-size: 11.818181991577148px; background-color: #eef4f9;"&gt;count(WP_CaseTable.Number)&lt;/SPAN&gt;)&amp;lt;=10,&lt;SPAN style="color: #636363; font-family: Arial; font-size: 11.818181991577148px; background-color: #eef4f9;"&gt;count(WP_CaseTable.Number)&lt;/SPAN&gt;), [&lt;SPAN style="color: #636363; font-family: Arial; font-size: 11.818181991577148px; background-color: #eef4f9;"&gt;Requesting Phsycian&lt;/SPAN&gt;],[&lt;SPAN style="color: #636363; font-family: Arial; font-size: 11.818181991577148px; background-color: #eef4f9;"&gt;Referring Physician&lt;/SPAN&gt;]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 19:31:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-to-Top-10-in-Pivot-Table/m-p/378665#M494912</guid>
      <dc:creator>bgerchikov</dc:creator>
      <dc:date>2012-08-16T19:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Limit to Top 10 in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-to-Top-10-in-Pivot-Table/m-p/378666#M494913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Good morning! friend&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am facing&amp;nbsp; the same problem and I need your help&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I try to display the first 10 sales per country in a Pivot table&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; text-decoration: line-through;"&gt;&lt;A href="https://community.qlik.com/legacyfs/online/59822_sales.PNG.png"&gt;&lt;IMG alt="sales.PNG.png" class="jive-image jiveImage" height="400" src="https://community.qlik.com/legacyfs/online/59822_sales.PNG.png" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="296" /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;so I added this expression in dimensions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; text-decoration: line-through;"&gt;&lt;A href="https://community.qlik.com/legacyfs/online/59823_Capture.PNG.png"&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image jiveImage" height="641" src="https://community.qlik.com/legacyfs/online/59823_Capture.PNG.png" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="936" /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and as a result I have&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; text-decoration: line-through;"&gt;&lt;A href="https://community.qlik.com/legacyfs/online/59824_Capture.PNG.png"&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image jiveImage" height="237" src="https://community.qlik.com/legacyfs/online/59824_Capture.PNG.png" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="329" /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;as you can see&amp;nbsp; for 2010 it gives a result&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;USA-&amp;gt; France-&amp;gt; germany&lt;/SPAN&gt;&amp;nbsp; and the logical order is &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;USA-&amp;gt; France-&amp;gt; UK&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; why?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank you for your answers &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 06:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-to-Top-10-in-Pivot-Table/m-p/378666#M494913</guid>
      <dc:creator />
      <dc:date>2014-05-30T06:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Limit to Top 10 in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-to-Top-10-in-Pivot-Table/m-p/378667#M494914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hanane,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your table is sorted by value.&lt;/P&gt;&lt;P&gt;Try use sort by Country in your Sort tab: in Expression box put Country as a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 21:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-to-Top-10-in-Pivot-Table/m-p/378667#M494914</guid>
      <dc:creator>bgerchikov</dc:creator>
      <dc:date>2014-06-02T21:58:28Z</dc:date>
    </item>
  </channel>
</rss>

