<?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 function problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-function-problem/m-p/992143#M338010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try FirstSortedValue(Area, -aggr(sum(Value), Agency, Area)) as expression to return the Area and max(aggr(sum(Value),Agency,Area)) as expression for the maximum sum of value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Oct 2015 14:32:24 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-10-04T14:32:24Z</dc:date>
    <item>
      <title>Rank function problem</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-problem/m-p/992142#M338009</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 have this situation, top 10 agencies with decrescent value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="imae.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100897_imae.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to have for every agency the max value Area.&lt;/P&gt;&lt;P&gt;How can i do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Agency as calculated dimension&amp;nbsp; = "if(aggr(rank(sum(Value)),[AGENCY NAME])&amp;lt;=10,[AGENCY NAME]) "&lt;/P&gt;&lt;P&gt;and Area as normal dimension.&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>Sun, 04 Oct 2015 14:18:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-problem/m-p/992142#M338009</guid>
      <dc:creator />
      <dc:date>2015-10-04T14:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function problem</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-problem/m-p/992143#M338010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try FirstSortedValue(Area, -aggr(sum(Value), Agency, Area)) as expression to return the Area and max(aggr(sum(Value),Agency,Area)) as expression for the maximum sum of value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Oct 2015 14:32:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-problem/m-p/992143#M338010</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-10-04T14:32:24Z</dc:date>
    </item>
  </channel>
</rss>

