<?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: Rank/ Aggr for Pivot table to get top 5 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254055#M396529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;11.00.11282.0 SR1 64-bit Edition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2017 20:45:09 GMT</pubDate>
    <dc:creator>rdsuperlike</dc:creator>
    <dc:date>2017-01-30T20:45:09Z</dc:date>
    <item>
      <title>Rank/ Aggr for Pivot table to get top 5</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254044#M396518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;I want Top 5 fruits for 2016 and 2017 to be listed in the uploaded qvw.&amp;nbsp; If Top 5 of both year is not possible then I want top 5 fruits by 2017&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I tried using dimensions limit by making it straight table. But then when i try to move the Fiscal year to the top column by moving blue arrow I cant. So I used pivot table, but in pivot table the dimension limits go away.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I think I need to use aggr function with rank function, but not sure how.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Can someone help me here?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks once again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 08:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254044#M396518</guid>
      <dc:creator>rdsuperlike</dc:creator>
      <dc:date>2017-01-30T08:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rank/ Aggr for Pivot table to get top 5</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254045#M396519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(aggr(rank(Count(Fruits),1,1),Fruits)&amp;lt;=5,Fruits)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 08:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254045#M396519</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-01-30T08:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rank/ Aggr for Pivot table to get top 5</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254046#M396520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use expression:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=If(Rank(Count({&amp;lt;FY = {2016,2017}&amp;gt;} [Customer ID]), 1, 1) &amp;lt; 5, Count({&amp;lt;FY = {2016,2017}&amp;gt;} [Customer ID]))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P&gt;Fruits (vertical)&lt;/P&gt;&lt;P&gt;FY (horizontal)&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="151171" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151171_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;You get more than 5 values because of the ties - for example the 3 instances of value 2 in 2016 are all Rank 4.&lt;/P&gt;&lt;P&gt;PS - I replaced the calculated dimension with the field FY and used the set expression to filter the years,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 08:35:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254046#M396520</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-01-30T08:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Rank/ Aggr for Pivot table to get top 5</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254047#M396521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Rank&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'2017'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Customer ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Fruits&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;=5),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'2017'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Customer ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Rank&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'2016'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Customer ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Fruits&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;=5),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'2016'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Customer ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hi, try above, Remove FY from Dimensions, add 2 expressions, one for each year 2016 and 2017.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This is very much hardcoded, but you can change the year against variables instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 08:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254047#M396521</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2017-01-30T08:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rank/ Aggr for Pivot table to get top 5</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254048#M396522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this looks good but how do I use suppress nulls. I clicked on suppress null checkbox but still see this&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Ranktest.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151278_Ranktest.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 20:01:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254048#M396522</guid>
      <dc:creator>rdsuperlike</dc:creator>
      <dc:date>2017-01-30T20:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rank/ Aggr for Pivot table to get top 5</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254049#M396523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check 'Suppress Zero Values' on dimensions tab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 20:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254049#M396523</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-30T20:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rank/ Aggr for Pivot table to get top 5</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254050#M396524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;already tried that..doesnt work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 20:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254050#M396524</guid>
      <dc:creator>rdsuperlike</dc:creator>
      <dc:date>2017-01-30T20:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Rank/ Aggr for Pivot table to get top 5</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254051#M396525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have more than one expression? I don't see why it should not suppress those if you have Suppress Zero Values on presentation tab checked if you only have one expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 20:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254051#M396525</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-30T20:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Rank/ Aggr for Pivot table to get top 5</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254052#M396526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you see this when you open the attached file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="151282" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151282_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update: Used Jonathan's expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 20:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254052#M396526</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-30T20:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Rank/ Aggr for Pivot table to get top 5</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254053#M396527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Ranktest_2.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151286_Ranktest_2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see as above &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; why?&lt;/P&gt;&lt;P&gt;I opened the qvw that u had attcahed in your reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 20:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254053#M396527</guid>
      <dc:creator>rdsuperlike</dc:creator>
      <dc:date>2017-01-30T20:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rank/ Aggr for Pivot table to get top 5</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254054#M396528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could be a version related issue. What version of&amp;nbsp; QV you are using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 20:43:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254054#M396528</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-30T20:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rank/ Aggr for Pivot table to get top 5</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254055#M396529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;11.00.11282.0 SR1 64-bit Edition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 20:45:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254055#M396529</guid>
      <dc:creator>rdsuperlike</dc:creator>
      <dc:date>2017-01-30T20:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rank/ Aggr for Pivot table to get top 5</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254056#M396530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, you are still using SR1? Can you update to a more recent version of QV may be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 20:47:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254056#M396530</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-30T20:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Rank/ Aggr for Pivot table to get top 5</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254057#M396531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OMG..u are right...i just tested this one someone else's laptop who has later version and looked good there....how do you upgrade? or rather will check with IT team at my company&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 21:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254057#M396531</guid>
      <dc:creator>rdsuperlike</dc:creator>
      <dc:date>2017-01-30T21:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rank/ Aggr for Pivot table to get top 5</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254058#M396532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can download from here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qlik.com/us/try-or-buy/download-qlikview" title="http://www.qlik.com/us/try-or-buy/download-qlikview"&gt;Download Free Data Visualization Development Platform&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 21:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Aggr-for-Pivot-table-to-get-top-5/m-p/1254058#M396532</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-30T21:53:22Z</dc:date>
    </item>
  </channel>
</rss>

