<?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 Ranking in a line chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ranking-in-a-line-chart/m-p/269193#M100996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a problem with ranking in a line chart.&amp;nbsp; One chart uses this dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(&lt;BR /&gt;if(&lt;BR /&gt;rank(&lt;BR /&gt;Sum ({$&amp;lt;[As of Date] = {'12/31/2011'}&amp;gt;}&lt;BR /&gt;[ICC Counter])) &amp;lt;= 5&lt;BR /&gt;&amp;nbsp; , [Insurance Company Name])&lt;BR /&gt;&amp;nbsp; , [Insurance Company Name])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it works fine.&amp;nbsp; It displays the top 5 Companies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second chart is exactly the same as the first except it is looking for Companies 6-10 (I am only displaying 5 lines).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(&lt;BR /&gt;if(&lt;BR /&gt;rank(&lt;BR /&gt;Sum ({$&amp;lt;[As of Date] = {'12/31/2011'}&amp;gt;}&lt;BR /&gt;[ICC Counter])) &amp;gt;= 6&lt;BR /&gt;&amp;nbsp; , [Insurance Company Name])&lt;BR /&gt;&amp;nbsp; , [Insurance Company Name])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result I am getting is the bottom 5 Companies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change the expression to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(&lt;BR /&gt;if(&lt;BR /&gt;rank(&lt;BR /&gt;Sum ({$&amp;lt;[As of Date] = {'12/31/2011'}&amp;gt;}&lt;BR /&gt;[ICC Counter])) = 6&lt;BR /&gt;&amp;nbsp; , [Insurance Company Name])&lt;BR /&gt;&amp;nbsp; , [Insurance Company Name])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the # 6 Company&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2012 20:49:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-09T20:49:36Z</dc:date>
    <item>
      <title>Ranking in a line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-in-a-line-chart/m-p/269193#M100996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a problem with ranking in a line chart.&amp;nbsp; One chart uses this dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(&lt;BR /&gt;if(&lt;BR /&gt;rank(&lt;BR /&gt;Sum ({$&amp;lt;[As of Date] = {'12/31/2011'}&amp;gt;}&lt;BR /&gt;[ICC Counter])) &amp;lt;= 5&lt;BR /&gt;&amp;nbsp; , [Insurance Company Name])&lt;BR /&gt;&amp;nbsp; , [Insurance Company Name])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it works fine.&amp;nbsp; It displays the top 5 Companies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second chart is exactly the same as the first except it is looking for Companies 6-10 (I am only displaying 5 lines).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(&lt;BR /&gt;if(&lt;BR /&gt;rank(&lt;BR /&gt;Sum ({$&amp;lt;[As of Date] = {'12/31/2011'}&amp;gt;}&lt;BR /&gt;[ICC Counter])) &amp;gt;= 6&lt;BR /&gt;&amp;nbsp; , [Insurance Company Name])&lt;BR /&gt;&amp;nbsp; , [Insurance Company Name])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result I am getting is the bottom 5 Companies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change the expression to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(&lt;BR /&gt;if(&lt;BR /&gt;rank(&lt;BR /&gt;Sum ({$&amp;lt;[As of Date] = {'12/31/2011'}&amp;gt;}&lt;BR /&gt;[ICC Counter])) = 6&lt;BR /&gt;&amp;nbsp; , [Insurance Company Name])&lt;BR /&gt;&amp;nbsp; , [Insurance Company Name])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the # 6 Company&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 20:49:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-in-a-line-chart/m-p/269193#M100996</guid>
      <dc:creator />
      <dc:date>2012-02-09T20:49:36Z</dc:date>
    </item>
    <item>
      <title>Ranking in a line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-in-a-line-chart/m-p/269194#M100997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to get the result you're looking for if you sort by the expression &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Sum ({$&amp;lt;[As of Date] = {'12/31/2011'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: #636363; font-family: Arial; font-size: 12px;"&gt;[ICC Counter]) &lt;/SPAN&gt; in the line chart in descending order or include in your if-statement the condition that the rank is less than or equal to 10 along with being greater than or equal to 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 21:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-in-a-line-chart/m-p/269194#M100997</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2012-02-09T21:06:01Z</dc:date>
    </item>
  </channel>
</rss>

