<?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: Agregation Function not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Agregation-Function-not-working/m-p/1859222#M1216051</link>
    <description>&lt;P&gt;I have tried it out and it's not working.&lt;/P&gt;
&lt;P&gt;This formula works, but returns the minimum value:&lt;/P&gt;
&lt;P&gt;FirstSortedValue(Degree,aggr([Degree Code]=max([Degree Code]),EmployeeNum))&lt;/P&gt;
&lt;P&gt;Can someone tell me how can I do to return the max instead, please!&lt;/P&gt;</description>
    <pubDate>Mon, 15 Nov 2021 09:32:00 GMT</pubDate>
    <dc:creator>Mario_ES</dc:creator>
    <dc:date>2021-11-15T09:32:00Z</dc:date>
    <item>
      <title>Agregation Function not working</title>
      <link>https://community.qlik.com/t5/QlikView/Agregation-Function-not-working/m-p/1858696#M1216017</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a simple table of employees with multiple fields one of which the is the degree. Each level of degree has an spefic code assigned by the goverment based on hierarchy&amp;nbsp;j: PHD 61, Masters Degree 59, University degree...&lt;/P&gt;
&lt;P&gt;The problem is tha many of them have more than one degree and causes the rows to multiply one for each degree.&lt;/P&gt;
&lt;P&gt;I want to only show the degree with the maximum code number. I have tried this formula and it's not working:&lt;/P&gt;
&lt;DIV&gt;
&lt;P&gt;&lt;STRONG&gt;IF(AGGR([Degree Code]=MAX([Degree Code]),EmployeeNumber), "Degree's Name")&lt;/STRONG&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;Can you please help.&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Nov 2021 12:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Agregation-Function-not-working/m-p/1858696#M1216017</guid>
      <dc:creator>Mario_ES</dc:creator>
      <dc:date>2021-11-12T12:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Agregation Function not working</title>
      <link>https://community.qlik.com/t5/QlikView/Agregation-Function-not-working/m-p/1858782#M1216020</link>
      <description>&lt;P&gt;perhaps this works: firstsortedvalue([Degree's Name], -[Degree Code])&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 14:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Agregation-Function-not-working/m-p/1858782#M1216020</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2021-11-12T14:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Agregation Function not working</title>
      <link>https://community.qlik.com/t5/QlikView/Agregation-Function-not-working/m-p/1859222#M1216051</link>
      <description>&lt;P&gt;I have tried it out and it's not working.&lt;/P&gt;
&lt;P&gt;This formula works, but returns the minimum value:&lt;/P&gt;
&lt;P&gt;FirstSortedValue(Degree,aggr([Degree Code]=max([Degree Code]),EmployeeNum))&lt;/P&gt;
&lt;P&gt;Can someone tell me how can I do to return the max instead, please!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 09:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Agregation-Function-not-working/m-p/1859222#M1216051</guid>
      <dc:creator>Mario_ES</dc:creator>
      <dc:date>2021-11-15T09:32:00Z</dc:date>
    </item>
  </channel>
</rss>

