<?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: Top n / Bottom n in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Top-n-Bottom-n/m-p/1163576#M629991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you can try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the chart properties "Sort" tab, select your expression and select "Expression" in sort by.&amp;nbsp; Here you can sort Descending (from highest to lowest sales) or Ascending (from lowest to highest sales) and then enter the expression.&lt;/P&gt;&lt;P&gt;In the "Dimension Limits" tab, choose "Restrict which values are displayed ..." and select to show only the largest or smallest 20.&lt;/P&gt;&lt;P&gt;So, in fact, you need a table to show the highest 20 and an other table to show the smallest 20. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2016 12:47:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-08-10T12:47:50Z</dc:date>
    <item>
      <title>Top n / Bottom n</title>
      <link>https://community.qlik.com/t5/QlikView/Top-n-Bottom-n/m-p/1163575#M629990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've read and tried a few suggestions on top n / bottom n on blogs / forums but none seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a calculated Expression which shows Week On Week performance based on last weeks sales and the week before.&amp;nbsp; All I need is the chart table to only display the highest 20 and lowest 20 performance based on this expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 09:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-n-Bottom-n/m-p/1163575#M629990</guid>
      <dc:creator />
      <dc:date>2016-08-10T09:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Top n / Bottom n</title>
      <link>https://community.qlik.com/t5/QlikView/Top-n-Bottom-n/m-p/1163576#M629991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you can try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the chart properties "Sort" tab, select your expression and select "Expression" in sort by.&amp;nbsp; Here you can sort Descending (from highest to lowest sales) or Ascending (from lowest to highest sales) and then enter the expression.&lt;/P&gt;&lt;P&gt;In the "Dimension Limits" tab, choose "Restrict which values are displayed ..." and select to show only the largest or smallest 20.&lt;/P&gt;&lt;P&gt;So, in fact, you need a table to show the highest 20 and an other table to show the smallest 20. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 12:47:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-n-Bottom-n/m-p/1163576#M629991</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-10T12:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Top n / Bottom n</title>
      <link>https://community.qlik.com/t5/QlikView/Top-n-Bottom-n/m-p/1163577#M629992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you used two objects (for example straight tables) you could set those top/bottom 20 within the limitation tab. Within one object it's more complicated and you would need a calculated dimension like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= dual(&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(aggr(rank(sum(Value), 4), Customer) &amp;lt; 21 or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aggr(rank(sum(Value), 4), Customer) &amp;gt; $(=count(distinct Customer)) - 20, Customer),&lt;/P&gt;&lt;P&gt;&amp;nbsp; aggr(rank(sum(Value), 4), Customer))&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and as expression simply: sum(Value).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 12:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-n-Bottom-n/m-p/1163577#M629992</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-08-10T12:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Top n / Bottom n</title>
      <link>https://community.qlik.com/t5/QlikView/Top-n-Bottom-n/m-p/1163578#M629993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I forgot to include that I need to restrict the ranked performance where sales are greater than £2000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 13:01:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-n-Bottom-n/m-p/1163578#M629993</guid>
      <dc:creator />
      <dc:date>2016-08-10T13:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Top n / Bottom n</title>
      <link>https://community.qlik.com/t5/QlikView/Top-n-Bottom-n/m-p/1163579#M629994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could of course include further conditions, maybe in these ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; Value = {"&amp;gt;=2000"}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;sum({&amp;lt; Value = {"=sum(Value)&amp;gt;2000"}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 13:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-n-Bottom-n/m-p/1163579#M629994</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-08-10T13:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Top n / Bottom n</title>
      <link>https://community.qlik.com/t5/QlikView/Top-n-Bottom-n/m-p/1163580#M629995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;fieldname={''=aggr(rank(sum(sales),4),Sales")&amp;gt;}+&lt;SPAN style="font-size: 13.3333px;"&gt;fieldname={''=aggr(rank(-sum(sales),4),Sales")&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u want bottomu can use -sum(sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 14:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-n-Bottom-n/m-p/1163580#M629995</guid>
      <dc:creator />
      <dc:date>2016-08-10T14:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Top n / Bottom n</title>
      <link>https://community.qlik.com/t5/QlikView/Top-n-Bottom-n/m-p/1163581#M629996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the replies so far.&amp;nbsp; I've not had chance to 'play' around this afternoon with your suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 15:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-n-Bottom-n/m-p/1163581#M629996</guid>
      <dc:creator />
      <dc:date>2016-08-10T15:25:14Z</dc:date>
    </item>
  </channel>
</rss>

