<?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: latest updated record based on the time in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/latest-updated-record-based-on-the-time/m-p/2100893#M90022</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to convert your string date to a real datetime like :&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Timestamp#('09-JUN-23 08.26.09.776000000 PM', 'DD-MMM-YY hh.mm.ss.fffffffff tt')&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 02 Aug 2023 15:58:50 GMT</pubDate>
    <dc:creator>Aurelien_Martinez</dc:creator>
    <dc:date>2023-08-02T15:58:50Z</dc:date>
    <item>
      <title>latest updated record based on the time</title>
      <link>https://community.qlik.com/t5/App-Development/latest-updated-record-based-on-the-time/m-p/2099548#M90019</link>
      <description>&lt;P&gt;Hello All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not able get the the latest record based on the &lt;STRONG&gt;Date&lt;/STRONG&gt; column by using max function, format of the date column is quite different like below. attaching the sample data for reference.&lt;/P&gt;
&lt;P&gt;E.g. for reference code 555, the latest status at&amp;nbsp;&lt;STRONG&gt;09-JUN-23 08.26.09.776000000 PM&lt;/STRONG&gt; time is&amp;nbsp;&lt;STRONG&gt;PENDING_MANUAL_REVIEW&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I want only this record. How can I get it.&lt;/P&gt;
&lt;P&gt;below total 2 unique reference codes are there, for which only 2 records should come based on the maximum of date.&lt;/P&gt;
&lt;P&gt;many thanks in advance.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28684"&gt;@kaushiknsolanki&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/12989"&gt;@Michael_Tarallo&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22569"&gt;@Clever_Anjos&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1336"&gt;@OmarBenSalem&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dhasharadh_1-1690981504865.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113445i277C44A412D82CE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dhasharadh_1-1690981504865.png" alt="dhasharadh_1-1690981504865.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 22:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/latest-updated-record-based-on-the-time/m-p/2099548#M90019</guid>
      <dc:creator>dhasharadh</dc:creator>
      <dc:date>2023-08-02T22:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: latest updated record based on the time</title>
      <link>https://community.qlik.com/t5/App-Development/latest-updated-record-based-on-the-time/m-p/2100893#M90022</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to convert your string date to a real datetime like :&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Timestamp#('09-JUN-23 08.26.09.776000000 PM', 'DD-MMM-YY hh.mm.ss.fffffffff tt')&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 02 Aug 2023 15:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/latest-updated-record-based-on-the-time/m-p/2100893#M90022</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2023-08-02T15:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: latest updated record based on the time</title>
      <link>https://community.qlik.com/t5/App-Development/latest-updated-record-based-on-the-time/m-p/2101753#M90024</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can you plz try below code.&lt;/P&gt;
&lt;P&gt;t1:&lt;BR /&gt;load * inline [&lt;BR /&gt;Date,Reference_Code,Status&lt;BR /&gt;09-JUN-23 08.20.56.407000000 PM,555,Active&lt;BR /&gt;09-JUN-23 09.20.56.407000000 PM,555,Pending Manual Review&lt;BR /&gt;08-JUN-23 09.20.56.407000000 PM,123,Started&lt;BR /&gt;];&lt;BR /&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;Temp:&lt;BR /&gt;Load&lt;BR /&gt;Timestamp(Timestamp#(Date,'DD-MMM-YY hh.mm.ss.fffffffff tt')) as Date,&lt;BR /&gt;Reference_Code,Status;&lt;BR /&gt;load * inline [&lt;BR /&gt;Date,Reference_Code,Status&lt;BR /&gt;09-JUN-23 08.20.56.407000000 PM,555,Active&lt;BR /&gt;09-JUN-23 09.20.56.407000000 PM,555,Pending Manual Review&lt;BR /&gt;08-JUN-23 09.20.56.407000000 PM,123,Started&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;inner join(Temp)&lt;BR /&gt;T:&lt;BR /&gt;Load&lt;BR /&gt;max(Timestamp(Timestamp#(Date,'DD-MMM-YY hh.mm.ss.fffffffff tt'))) as Date&lt;BR /&gt;resident t1&lt;BR /&gt;; &lt;BR /&gt;drop table t1;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Navars_1-1690996441765.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113467iBDB3002E28830016/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Navars_1-1690996441765.png" alt="Navars_1-1690996441765.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 17:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/latest-updated-record-based-on-the-time/m-p/2101753#M90024</guid>
      <dc:creator>Navars</dc:creator>
      <dc:date>2023-08-02T17:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: latest updated record based on the time</title>
      <link>https://community.qlik.com/t5/App-Development/latest-updated-record-based-on-the-time/m-p/2101817#M90030</link>
      <description>&lt;P&gt;thank you Navars, not sure what is wrong, but it didnt worked. I have attached the sample data for reference.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 22:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/latest-updated-record-based-on-the-time/m-p/2101817#M90030</guid>
      <dc:creator>dhasharadh</dc:creator>
      <dc:date>2023-08-02T22:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: latest updated record based on the time</title>
      <link>https://community.qlik.com/t5/App-Development/latest-updated-record-based-on-the-time/m-p/2101937#M90037</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Data:
Load
  TimeStamp#(Date, 'DD-MMM-YY hh.mm.dd.fffffffff tt')*1 as Date_Num,
  Date,
  Reference_Code,
  Status
From [file]
;

Inner join(Data)
Load
  Max(Date_Num)*1 as Date_Num,
  Reference_Code
Resident Data
Group By
  Reference_Code
;
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 03 Aug 2023 07:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/latest-updated-record-based-on-the-time/m-p/2101937#M90037</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2023-08-03T07:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: latest updated record based on the time</title>
      <link>https://community.qlik.com/t5/App-Development/latest-updated-record-based-on-the-time/m-p/2102069#M90047</link>
      <description>&lt;P&gt;Hi Dhasharadh,&lt;/P&gt;
&lt;P&gt;by using below code getting data for each date wise&amp;nbsp;&lt;/P&gt;
&lt;P&gt;code:&lt;BR /&gt;LOAD&lt;BR /&gt;Timestamp(Timestamp#(Date,'DD-MMM-YY hh.mm.ss.fffffffff tt')) as Date,&lt;BR /&gt;"Referience code",&lt;BR /&gt;Status&lt;BR /&gt;FROM [lib://DataFiles/Sample.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;inner join(code)&lt;/P&gt;
&lt;P&gt;Load max(Date) as Date,&lt;BR /&gt;"Referience code"&lt;BR /&gt;Resident code&lt;BR /&gt;group by "Referience code";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Navars_0-1691064176494.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113523iA0700C742F5F5BF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Navars_0-1691064176494.png" alt="Navars_0-1691064176494.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 12:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/latest-updated-record-based-on-the-time/m-p/2102069#M90047</guid>
      <dc:creator>Navars</dc:creator>
      <dc:date>2023-08-03T12:08:41Z</dc:date>
    </item>
  </channel>
</rss>

