<?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 Need help with FirstSortedValue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-FirstSortedValue/m-p/551480#M482137</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=FirstSortedValue(distinct [Person],-[Sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression returns the top sales person based on the Highest Sales value, but I want to retrieve the person with the highest Sum(Sales) value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;Person Sales&lt;/P&gt;&lt;P&gt;Rob&amp;nbsp;&amp;nbsp;&amp;nbsp; 6000&lt;/P&gt;&lt;P&gt;John&amp;nbsp;&amp;nbsp; 7000&lt;/P&gt;&lt;P&gt;Rob&amp;nbsp;&amp;nbsp;&amp;nbsp; 5000&lt;/P&gt;&lt;P&gt;John&amp;nbsp;&amp;nbsp; 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression returns John based on the highest sale 7000. Whereas I expect Rob to be returned because his sum is 11000. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Aug 2013 05:21:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-30T05:21:03Z</dc:date>
    <item>
      <title>Need help with FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-FirstSortedValue/m-p/551480#M482137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=FirstSortedValue(distinct [Person],-[Sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression returns the top sales person based on the Highest Sales value, but I want to retrieve the person with the highest Sum(Sales) value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;Person Sales&lt;/P&gt;&lt;P&gt;Rob&amp;nbsp;&amp;nbsp;&amp;nbsp; 6000&lt;/P&gt;&lt;P&gt;John&amp;nbsp;&amp;nbsp; 7000&lt;/P&gt;&lt;P&gt;Rob&amp;nbsp;&amp;nbsp;&amp;nbsp; 5000&lt;/P&gt;&lt;P&gt;John&amp;nbsp;&amp;nbsp; 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression returns John based on the highest sale 7000. Whereas I expect Rob to be returned because his sum is 11000. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 05:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-FirstSortedValue/m-p/551480#M482137</guid>
      <dc:creator />
      <dc:date>2013-08-30T05:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-FirstSortedValue/m-p/551481#M482138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression corrected: FirstSortedValue(Person, -Aggr(Sum(Sales),Person))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 05:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-FirstSortedValue/m-p/551481#M482138</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-08-30T05:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-FirstSortedValue/m-p/551482#M482139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=FirstSortedValue([Person], Aggr(-Sum([Sales]), Person))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 05:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-FirstSortedValue/m-p/551482#M482139</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-08-30T05:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-FirstSortedValue/m-p/551483#M482140</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think so,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; = FirstSortedValue(Person, -Aggr(Sum(Sales),Person))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 05:29:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-FirstSortedValue/m-p/551483#M482140</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-08-30T05:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-FirstSortedValue/m-p/551484#M482141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to both of you. It works!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 05:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-FirstSortedValue/m-p/551484#M482141</guid>
      <dc:creator />
      <dc:date>2013-08-30T05:32:35Z</dc:date>
    </item>
  </channel>
</rss>

