<?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: extract the latest row from a file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/extract-the-latest-row-from-a-file/m-p/2302377#M74365</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;The 1st way is right,  use tSortRow to sort the rows by timestamp (desc model), and then link tSortRow to a tMap where add a sequence ID to each row, filter the row which has sequence id==1, this is the latest row.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000AYgBfAAL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145899i008DF8A400D1D682/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000AYgBfAAL.png" alt="0693p00000AYgBfAAL.png" /&gt;&lt;/span&gt;Please try and let me know if you have any issues/questions. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Nov 2020 03:02:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-16T03:02:02Z</dc:date>
    <item>
      <title>extract the latest row from a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-the-latest-row-from-a-file/m-p/2302376#M74364</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a file with an email address, a timestamp and a series of values on each line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only want the line with the latest timestamp for the email address&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set up a tFileInputDelimited component for the file bit I've hit a snag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i) i tried using tSortRow which sorts by email address and timestamp. This works but I don't really know what component goes next in the pipeline. tUniqRow doesn't seem to allow me to say I only want the latest timestamp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ii) i tried using  tAggregateRow but I'm not sure how this relates to aggregation windows  : I only want the latest row (by timestamp)  for the email address, not the file. This may be "first" for the timestamp itself but I don;t see how I extract the other values  - these I suppose should be "first" but only in relation to timestamp. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i guess i need the equivalent of sql windows partition. Any ideas ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jack&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:14:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-the-latest-row-from-a-file/m-p/2302376#M74364</guid>
      <dc:creator>jackd9999</dc:creator>
      <dc:date>2024-11-16T01:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: extract the latest row from a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-the-latest-row-from-a-file/m-p/2302377#M74365</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;The 1st way is right,  use tSortRow to sort the rows by timestamp (desc model), and then link tSortRow to a tMap where add a sequence ID to each row, filter the row which has sequence id==1, this is the latest row.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000AYgBfAAL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145899i008DF8A400D1D682/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000AYgBfAAL.png" alt="0693p00000AYgBfAAL.png" /&gt;&lt;/span&gt;Please try and let me know if you have any issues/questions. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 03:02:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-the-latest-row-from-a-file/m-p/2302377#M74365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-16T03:02:02Z</dc:date>
    </item>
  </channel>
</rss>

