<?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: to pick TOP-20 values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/to-pick-TOP-20-values/m-p/981951#M335191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;just change your expression to &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;Brand={"=rank(sum({$&amp;lt;Brand=&amp;gt;} Quantity ),1,1)&amp;lt;=20"}&amp;gt;} Quantity)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;which set the rank format to return the lower value for to identical values &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;so instead of returning 20-21 in your example it'll return 20 to both entities &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 06 Sep 2015 11:23:27 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2015-09-06T11:23:27Z</dc:date>
    <item>
      <title>to pick TOP-20 values</title>
      <link>https://community.qlik.com/t5/QlikView/to-pick-TOP-20-values/m-p/981950#M335190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using the following expression to pick TOP-20 values:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Brand={"=rank(sum({$&amp;lt;Brand=&amp;gt;} Quantity ))&amp;lt;=20"}&amp;gt;} Quantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, see the file attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine except for some cases. For instance, if Brand No20 and &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Brand No21 have the same sum(Quantity), then QlikView picks only first 19 brands. &lt;/SPAN&gt;My task is to select 21 brands in such cases. It means that if it's not possible to select exactly 20 brands, then the programm should select 21 but not 19. How is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Sep 2015 11:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-pick-TOP-20-values/m-p/981950#M335190</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-06T11:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: to pick TOP-20 values</title>
      <link>https://community.qlik.com/t5/QlikView/to-pick-TOP-20-values/m-p/981951#M335191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;just change your expression to &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;Brand={"=rank(sum({$&amp;lt;Brand=&amp;gt;} Quantity ),1,1)&amp;lt;=20"}&amp;gt;} Quantity)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;which set the rank format to return the lower value for to identical values &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;so instead of returning 20-21 in your example it'll return 20 to both entities &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Sep 2015 11:23:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-pick-TOP-20-values/m-p/981951#M335191</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2015-09-06T11:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: to pick TOP-20 values</title>
      <link>https://community.qlik.com/t5/QlikView/to-pick-TOP-20-values/m-p/981952#M335192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Sep 2015 12:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-pick-TOP-20-values/m-p/981952#M335192</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-06T12:13:14Z</dc:date>
    </item>
  </channel>
</rss>

