<?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 How can I filter by ranks? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-filter-by-ranks/m-p/361533#M575892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aggr(if(rank(Expression&amp;lt;=50,Dimension),Dimension) Using this as the dimension will return just 1-50 ranked dimensions based on the expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used this that returns the top 50 customers per company based on their order amount&lt;/P&gt;&lt;P&gt;=aggr(if(rank(sum([Order Amount]))&amp;lt;=50,Customer),Company,Customer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2012 12:48:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-04-20T12:48:16Z</dc:date>
    <item>
      <title>How can I filter by ranks?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-filter-by-ranks/m-p/361532#M575891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would to know how could I filter an expression in a chart by ranks of values. &lt;/P&gt;&lt;P&gt;There is an option to choose different colours if the expression is more or less than a value so I want a similar thing but instead painting the colours, filtering by that rank of values to show me only that data that is the most relevant.&lt;/P&gt;&lt;P&gt;Any ideas?? Thank´s!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Se aceptan respuestas en español, gracias&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos, &lt;/P&gt;&lt;P&gt;Chema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 12:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-filter-by-ranks/m-p/361532#M575891</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-04-20T12:41:47Z</dc:date>
    </item>
    <item>
      <title>How can I filter by ranks?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-filter-by-ranks/m-p/361533#M575892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aggr(if(rank(Expression&amp;lt;=50,Dimension),Dimension) Using this as the dimension will return just 1-50 ranked dimensions based on the expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used this that returns the top 50 customers per company based on their order amount&lt;/P&gt;&lt;P&gt;=aggr(if(rank(sum([Order Amount]))&amp;lt;=50,Customer),Company,Customer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 12:48:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-filter-by-ranks/m-p/361533#M575892</guid>
      <dc:creator />
      <dc:date>2012-04-20T12:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I filter by ranks?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-filter-by-ranks/m-p/361534#M575893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi marcsliving,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;I need to show&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;maximum and&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;minimum dynamically on the same chart. I´ve thought to do two entry boxes so the user could choose the maximum and the minimum and make an expression like this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[SSTT kg] = {"(&amp;gt;=$(maximo))"},[SSTT kg]={"(&amp;lt;=$(minimo))"}&amp;gt;} [SSTT kg])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the syntax is incorrect, I don´t know how to do it.&lt;/P&gt;&lt;P&gt;The next expression is working to show the values bigger than $(maximo) but with the other expression I`m getting only the values less than $(minimo) but no both of filters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[SSTT kg] = {"(&amp;gt;=$(maximo))"}&amp;gt;}[SSTT kg]) &lt;SPAN style="color: #008000;"&gt;//working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[SSTT kg] = {"(&amp;gt;=$(maximo))"},[SSTT kg]={"(&amp;lt;=$(minimo))"}&amp;gt;} [SSTT kg])&lt;SPAN style="color: #008000;"&gt; //only working second filter [SSTT kg]={"(&amp;lt;=$(minimo))"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry about the confussion, this is filtering more than ranking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 13:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-filter-by-ranks/m-p/361534#M575893</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-04-20T13:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I filter by ranks?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-filter-by-ranks/m-p/361535#M575894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That´s finally working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If((Sum({&amp;lt;[SSTT kg] = {"(&amp;gt;=$(maximo))"}&amp;gt;} [SSTT kg]) or Sum({&amp;lt;[SSTT kg] ={"(&amp;lt;=$(minimo))"}&amp;gt;} [SSTT kg]))=-1,[SSTT kg],Null())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 15:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-filter-by-ranks/m-p/361535#M575894</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-04-20T15:54:05Z</dc:date>
    </item>
  </channel>
</rss>

