<?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 Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-Function/m-p/239911#M90477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD FirstSortedValue(Ticket_Id, -Id) as Ticket_Id, Field1&lt;/P&gt;&lt;P&gt;FROM ..\example.qvd (qvd)&lt;/P&gt;&lt;P&gt;GROUP BY Field1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the correct syntax for the query&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Nov 2009 02:26:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-13T02:26:58Z</dc:date>
    <item>
      <title>FirstSortedValue Function</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-Function/m-p/239910#M90476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a group of records with an unique Id, and a repetead Ticket_Id, so for one TicketId could be more than one records.&lt;/P&gt;&lt;P&gt;I am trying to load the last value of this group of records order by the unique Id:&lt;/P&gt;&lt;P&gt;The Field1 or Field2 could have a null value, i must load it anyway.&lt;/P&gt;&lt;P&gt;LOAD FirstSortedValue(Ticket_Id, -Id) as Ticket_Id, Field1, Field2&lt;/P&gt;&lt;P&gt;FROM ..\example.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not working, it's loading the records that don't have null in Field1 or Field2, and with a repetead Ticket_Id. I want to load only the record wich have the last Id of the group, so, the Ticket_Id won't be repeated.&lt;/P&gt;&lt;P&gt;Is this the correct function to do this? It's a problem with the parameters??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 02:15:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-Function/m-p/239910#M90476</guid>
      <dc:creator />
      <dc:date>2009-11-13T02:15:04Z</dc:date>
    </item>
    <item>
      <title>FirstSortedValue Function</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-Function/m-p/239911#M90477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD FirstSortedValue(Ticket_Id, -Id) as Ticket_Id, Field1&lt;/P&gt;&lt;P&gt;FROM ..\example.qvd (qvd)&lt;/P&gt;&lt;P&gt;GROUP BY Field1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the correct syntax for the query&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 02:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-Function/m-p/239911#M90477</guid>
      <dc:creator />
      <dc:date>2009-11-13T02:26:58Z</dc:date>
    </item>
    <item>
      <title>FirstSortedValue Function</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-Function/m-p/239912#M90478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD Ticket_Id, FirstSortedValue(Field1, -Id) as Field1&lt;/P&gt;&lt;P&gt;FROM ..\example.qvd (qvd)&lt;/P&gt;&lt;P&gt;GROUP BY Ticket_Id;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 02:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-Function/m-p/239912#M90478</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-13T02:42:41Z</dc:date>
    </item>
  </channel>
</rss>

