<?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 firstsortedvalue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/firstsortedvalue/m-p/432108#M490783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I am using this expression below to retrieve the last amount corresponding my selection criteria and it is working fine when i select one client&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;firstsortedvalue({&amp;lt;Year={'$(vMaxYear)'},Date={'&amp;lt;=$(vMaxDate)'},Month=,Day=,MonthYear=&amp;gt;}Amount,-Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem i don't knwow how can i have the sum of all clients ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me Please&lt;/P&gt;&lt;P&gt;It is very Urgent.&lt;/P&gt;&lt;P&gt;Slim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Sep 2012 18:14:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-22T18:14:54Z</dc:date>
    <item>
      <title>firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/firstsortedvalue/m-p/432108#M490783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I am using this expression below to retrieve the last amount corresponding my selection criteria and it is working fine when i select one client&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;firstsortedvalue({&amp;lt;Year={'$(vMaxYear)'},Date={'&amp;lt;=$(vMaxDate)'},Month=,Day=,MonthYear=&amp;gt;}Amount,-Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem i don't knwow how can i have the sum of all clients ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me Please&lt;/P&gt;&lt;P&gt;It is very Urgent.&lt;/P&gt;&lt;P&gt;Slim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2012 18:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsortedvalue/m-p/432108#M490783</guid>
      <dc:creator />
      <dc:date>2012-09-22T18:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/firstsortedvalue/m-p/432109#M490784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;To iterate through all clients you can use aggr() function. Then use sum(), with set expression if needed.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;=Sum(aggr(firstsortedvalue(...), Client))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2012 19:15:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsortedvalue/m-p/432109#M490784</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-22T19:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/firstsortedvalue/m-p/432110#M490785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Many Thanks , it is working very well.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Slim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2012 19:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsortedvalue/m-p/432110#M490785</guid>
      <dc:creator />
      <dc:date>2012-09-22T19:26:55Z</dc:date>
    </item>
  </channel>
</rss>

