<?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 getting latest record in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/getting-latest-record-in-script/m-p/1216322#M864028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am trying to create a flag for the latest record in the script;&lt;/P&gt;&lt;P&gt;I have an email address and Date, i want to flag the row with the latest date per email address. &lt;/P&gt;&lt;P&gt;i have attached an example, my real data has a lot more fields but Email is the key to the rest of the tables and its the date i need it sorted on.&lt;/P&gt;&lt;P&gt;can anyone help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>hopkinsc</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>getting latest record in script</title>
      <link>https://community.qlik.com/t5/QlikView/getting-latest-record-in-script/m-p/1216322#M864028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am trying to create a flag for the latest record in the script;&lt;/P&gt;&lt;P&gt;I have an email address and Date, i want to flag the row with the latest date per email address. &lt;/P&gt;&lt;P&gt;i have attached an example, my real data has a lot more fields but Email is the key to the rest of the tables and its the date i need it sorted on.&lt;/P&gt;&lt;P&gt;can anyone help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-latest-record-in-script/m-p/1216322#M864028</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: getting latest record in script</title>
      <link>https://community.qlik.com/t5/QlikView/getting-latest-record-in-script/m-p/1216323#M864030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Email, Date&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-email-small" href="mailto:PersonA@Email.com"&gt;PersonA@Email.com&lt;/A&gt;&lt;SPAN&gt;, 01/01/2012&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-email-small" href="mailto:PersonA@Email.com"&gt;PersonA@Email.com&lt;/A&gt;&lt;SPAN&gt;, 01/02/2012&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-email-small" href="mailto:PersonA@Email.com"&gt;PersonA@Email.com&lt;/A&gt;&lt;SPAN&gt;, 01/05/2012&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-email-small" href="mailto:PersonA@Email.com"&gt;PersonA@Email.com&lt;/A&gt;&lt;SPAN&gt;, 01/09/2012&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-email-small" href="mailto:PersonB@Email.com"&gt;PersonB@Email.com&lt;/A&gt;&lt;SPAN&gt;, 01/01/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-email-small" href="mailto:PersonB@Email.com"&gt;PersonB@Email.com&lt;/A&gt;&lt;SPAN&gt;, 01/08/2015&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-email-small" href="mailto:PersonB@Email.com"&gt;PersonB@Email.com&lt;/A&gt;&lt;SPAN&gt;, 01/04/2016&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN&lt;/P&gt;&lt;P&gt;LOAD Email, Maxstring(Date) as Date, 1 as Flag&lt;/P&gt;&lt;P&gt;RESIDENT Data&lt;/P&gt;&lt;P&gt;GROUP by Email;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 11:27:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-latest-record-in-script/m-p/1216323#M864030</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-12-21T11:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: getting latest record in script</title>
      <link>https://community.qlik.com/t5/QlikView/getting-latest-record-in-script/m-p/1216324#M864033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Data:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Email, Date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A class="jive-link-email-small" href="mailto:PersonA@Email.com"&gt;PersonA@Email.com&lt;/A&gt;&lt;SPAN&gt;, 01/01/2012&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A class="jive-link-email-small" href="mailto:PersonA@Email.com"&gt;PersonA@Email.com&lt;/A&gt;&lt;SPAN&gt;, 01/02/2012&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A class="jive-link-email-small" href="mailto:PersonA@Email.com"&gt;PersonA@Email.com&lt;/A&gt;&lt;SPAN&gt;, 01/05/2012&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A class="jive-link-email-small" href="mailto:PersonA@Email.com"&gt;PersonA@Email.com&lt;/A&gt;&lt;SPAN&gt;, 01/09/2012&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A class="jive-link-email-small" href="mailto:PersonB@Email.com"&gt;PersonB@Email.com&lt;/A&gt;&lt;SPAN&gt;, 01/01/2013&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A class="jive-link-email-small" href="mailto:PersonB@Email.com"&gt;PersonB@Email.com&lt;/A&gt;&lt;SPAN&gt;, 01/08/2015&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A class="jive-link-email-small" href="mailto:PersonB@Email.com"&gt;PersonB@Email.com&lt;/A&gt;&lt;SPAN&gt;, 01/04/2016&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Join (Data)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Email, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Max(Date) as Date,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 1 as MaxFlag&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Data&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Group By Email&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147252_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 11:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-latest-record-in-script/m-p/1216324#M864033</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-12-21T11:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: getting latest record in script</title>
      <link>https://community.qlik.com/t5/QlikView/getting-latest-record-in-script/m-p/1216325#M864034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan, i didn't think of doing something as simple as that, i have been trying to get it working using FirstSortedValue or applymap!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 11:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-latest-record-in-script/m-p/1216325#M864034</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2016-12-21T11:36:48Z</dc:date>
    </item>
  </channel>
</rss>

