<?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 Aggr function and dimension field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-function-and-dimension-field/m-p/228117#M503962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm trying to use the following expression as the first dimension on my pivot table, hiding null values.&lt;BR /&gt;&lt;BR /&gt;The idea is that i can display only the:&lt;BR /&gt;Top 5 rows Per 'Field 1' (top level on the pivot table)&lt;BR /&gt;Based on the rank generated by a count of field MY_Field.&lt;BR /&gt;&lt;BR /&gt;=if(aggr(rank(Count(MY_Field)), Field1)&amp;lt;=5,Field1,null())&lt;BR /&gt;&lt;BR /&gt;It should result in a table with 5 rows per each value of 'Field1', and have the top 5 ranking values based on the count()&lt;BR /&gt;The problem is that my chart displays many rows per 'Field1', when i was hoping for only the top 5.&lt;BR /&gt;I suspect its todo with the aggr() function and the dimensions, but i'm not sure.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1526_sourceID:1526" /&gt;&lt;/P&gt;&lt;P&gt;I've had to blur the data, but what i should see is only 5 rows for the value 'Group1' ,ignoring my other values from Field2,Field3, Field4,&lt;BR /&gt;then another 5 rows for 'Group2' etc etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm open to any better ideas or changes &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Apr 2010 17:31:04 GMT</pubDate>
    <dc:creator>peter_turner</dc:creator>
    <dc:date>2010-04-29T17:31:04Z</dc:date>
    <item>
      <title>Aggr function and dimension field</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-and-dimension-field/m-p/228117#M503962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm trying to use the following expression as the first dimension on my pivot table, hiding null values.&lt;BR /&gt;&lt;BR /&gt;The idea is that i can display only the:&lt;BR /&gt;Top 5 rows Per 'Field 1' (top level on the pivot table)&lt;BR /&gt;Based on the rank generated by a count of field MY_Field.&lt;BR /&gt;&lt;BR /&gt;=if(aggr(rank(Count(MY_Field)), Field1)&amp;lt;=5,Field1,null())&lt;BR /&gt;&lt;BR /&gt;It should result in a table with 5 rows per each value of 'Field1', and have the top 5 ranking values based on the count()&lt;BR /&gt;The problem is that my chart displays many rows per 'Field1', when i was hoping for only the top 5.&lt;BR /&gt;I suspect its todo with the aggr() function and the dimensions, but i'm not sure.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1526_sourceID:1526" /&gt;&lt;/P&gt;&lt;P&gt;I've had to blur the data, but what i should see is only 5 rows for the value 'Group1' ,ignoring my other values from Field2,Field3, Field4,&lt;BR /&gt;then another 5 rows for 'Group2' etc etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm open to any better ideas or changes &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 17:31:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-and-dimension-field/m-p/228117#M503962</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2010-04-29T17:31:04Z</dc:date>
    </item>
  </channel>
</rss>

