<?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 limit the number of results for a given dimension in a pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/limit-the-number-of-results-for-a-given-dimension-in-a-pivot/m-p/150357#M28405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you want to identify top 3 products for any customer? You can write a set expression to get top product on the basis of some metrics e.g. top3 products w.r.t sales,etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2009 18:03:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-27T18:03:15Z</dc:date>
    <item>
      <title>limit the number of results for a given dimension in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/limit-the-number-of-results-for-a-given-dimension-in-a-pivot/m-p/150355#M28403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know of a way to limit the number of results displayed for an expresion for a dimension in a pivot table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table that contains sales which has a date dimension across the top and customers as dimension 1 and items as dimensions 2 down the side. I would like to see all customers but only the top 3 items for each customer. Is this possible without doing prior analysis to identify those customer/item combinations and then loading those records as a dimension?&lt;/P&gt;&lt;P&gt;Also on the wish list is to be able to display the total sales for each customer below their top 3 items but I suspect that this would be contrary to the logic of a pivot table and would need to be tackled through a straight table. Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As always, all help is much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 17:40:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/limit-the-number-of-results-for-a-given-dimension-in-a-pivot/m-p/150355#M28403</guid>
      <dc:creator />
      <dc:date>2009-07-27T17:40:44Z</dc:date>
    </item>
    <item>
      <title>limit the number of results for a given dimension in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/limit-the-number-of-results-for-a-given-dimension-in-a-pivot/m-p/150356#M28404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you need a dynamic dimension like:&lt;/P&gt;&lt;P&gt;=Aggr(If(Rank(Sum(Amount)) &amp;lt;=3, Company, 'Others'), Company)&lt;/P&gt;&lt;P&gt;So you solve the first part of your questions.&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 17:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/limit-the-number-of-results-for-a-given-dimension-in-a-pivot/m-p/150356#M28404</guid>
      <dc:creator />
      <dc:date>2009-07-27T17:50:26Z</dc:date>
    </item>
    <item>
      <title>limit the number of results for a given dimension in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/limit-the-number-of-results-for-a-given-dimension-in-a-pivot/m-p/150357#M28405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you want to identify top 3 products for any customer? You can write a set expression to get top product on the basis of some metrics e.g. top3 products w.r.t sales,etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 18:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/limit-the-number-of-results-for-a-given-dimension-in-a-pivot/m-p/150357#M28405</guid>
      <dc:creator />
      <dc:date>2009-07-27T18:03:15Z</dc:date>
    </item>
    <item>
      <title>limit the number of results for a given dimension in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/limit-the-number-of-results-for-a-given-dimension-in-a-pivot/m-p/150358#M28406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good question. I hadnt thought up to now but I guess I will build a set based on last month or last quarter.&lt;/P&gt;&lt;P&gt;Regarding the aggr function above, how might that look in terms of my customer and item dimensions? I have been having a play around with it and have hit some good pointers but also some unexpected results.&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;This may be the expression I was looking for (apart from the set part)&lt;/P&gt;&lt;P&gt;=aggr(if(rank(sum(sales))&amp;lt;=3, Item,'Others'),Customer,Item)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 19:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/limit-the-number-of-results-for-a-given-dimension-in-a-pivot/m-p/150358#M28406</guid>
      <dc:creator />
      <dc:date>2009-07-27T19:15:17Z</dc:date>
    </item>
  </channel>
</rss>

