<?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: [resolved] Get the most recent date using tAggregateRow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-most-recent-date-using-tAggregateRow/m-p/2322469#M92413</link>
    <description>How can you expect to carry data through if you're not grouping by it or doing some operation on it?  This just like SQL.</description>
    <pubDate>Fri, 24 May 2013 04:05:00 GMT</pubDate>
    <dc:creator>alevy</dc:creator>
    <dc:date>2013-05-24T04:05:00Z</dc:date>
    <item>
      <title>[resolved] Get the most recent date using tAggregateRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-most-recent-date-using-tAggregateRow/m-p/2322465#M92409</link>
      <description>Hi, 
&lt;BR /&gt;I am trying to extract the most recent date from a flow and I need some support. 
&lt;BR /&gt;In this job getting all license history for a based on the idlicense (see tmap screenshot) and then I want to keep only the most recent date using a tAggregateRow. I've been playing with taggregaterow and so far only succeed to have partial solution. 
&lt;BR /&gt;SOLUTION 1: 
&lt;BR /&gt;Set taggregate with: 
&lt;BR /&gt;Group by: license_idlicense 
&lt;BR /&gt;Operation: 
&lt;BR /&gt;- Output column: Start_Date 
&lt;BR /&gt;- Function: Max 
&lt;BR /&gt;- Input column position: Start_Date 
&lt;BR /&gt;When I do this, the aggregation works great and I have only the max date in the output. However, only value for license_idlicense and the date is send in the output. Even if I think I set the schema properly (see taggregaterow_schema screenshot) 
&lt;BR /&gt;SOLUTION 2: 
&lt;BR /&gt;Same settings as describe before with one exception: I added all the field in the group by of the aggregaterow (see taggregate screenshot). This time I have all the data I want in the output but the aggregation doesn't work anymore 
&lt;BR /&gt; 
&lt;BR /&gt;I've been looking around for tutorials and / or previous post to use tAggregateRow with date with no success. 
&lt;BR /&gt;Thanks in advance for your support! 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009ME0I.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132309iD1B5335C7F8502E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009ME0I.png" alt="0683p000009ME0I.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEO1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131394i8749E72D423EBF2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEO1.png" alt="0683p000009MEO1.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEU1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127798iE538DB39A3174132/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEU1.png" alt="0683p000009MEU1.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 10 May 2013 00:51:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-most-recent-date-using-tAggregateRow/m-p/2322465#M92409</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-10T00:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get the most recent date using tAggregateRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-most-recent-date-using-tAggregateRow/m-p/2322466#M92410</link>
      <description>Hi, 
&lt;BR /&gt;Could you please elaborate your case with an example with input and expected output values? Perhaps we can design a demo job with 
&lt;A href="https://help.talend.com/search/all?query=tAggregateRow&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tAggregateRow&lt;/A&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 10 May 2013 03:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-most-recent-date-using-tAggregateRow/m-p/2322466#M92410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-10T03:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get the most recent date using tAggregateRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-most-recent-date-using-tAggregateRow/m-p/2322467#M92411</link>
      <description>Hi 
&lt;BR /&gt;You did't use tAggregateRow correctly with solution 2, in your case, the group element should license_idlicense as you did in solution1. The max operation will only count one value, the max value, it is normal in solution1. 
&lt;BR /&gt; 
&lt;BR /&gt;Shong</description>
      <pubDate>Sat, 11 May 2013 07:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-most-recent-date-using-tAggregateRow/m-p/2322467#M92411</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-11T07:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get the most recent date using tAggregateRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-most-recent-date-using-tAggregateRow/m-p/2322468#M92412</link>
      <description>Hi shong and thanks for your message, you confirmed my thought regarding usage of tAggregateRow. 
&lt;BR /&gt;So I configure it with only (see screen shot) 
&lt;BR /&gt;- 
&lt;B&gt;Group by&lt;/B&gt; on 
&lt;I&gt;license_idlicense&lt;/I&gt; 
&lt;BR /&gt;- 
&lt;B&gt;Operation&lt;/B&gt; on 
&lt;I&gt;Start_Date&lt;/I&gt; 
&lt;BR /&gt;- sync columns to transfer the schema 
&lt;BR /&gt;... and my output contains only value for the two fields mentioned previously. This is an extract of the tLogRow: 
&lt;BR /&gt; 
&lt;PRE&gt;Starting job L031_test at 12:10 23/05/2013.&lt;BR /&gt;&lt;BR /&gt; connecting to socket on port 3818&lt;BR /&gt; connected&lt;BR /&gt;|0||01-06-2003||||461&lt;BR /&gt;|0||01-08-2007||||464&lt;BR /&gt;|0||01-05-2004||||457&lt;BR /&gt;|0||01-01-1900||||943&lt;BR /&gt;|0||01-12-1997||||931&lt;BR /&gt;|0||01-08-1989||||456&lt;BR /&gt;|0||01-01-1900||||934&lt;BR /&gt;|0||01-08-1988||||451&lt;BR /&gt;|0||01-10-1986||||933&lt;BR /&gt; disconnected&lt;/PRE&gt; 
&lt;BR /&gt;what should I do to get value for all fields in the outputs stream? 
&lt;BR /&gt;thanks 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MESa.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151707iFCE3A07EF1F8B347/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MESa.png" alt="0683p000009MESa.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 23 May 2013 17:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-most-recent-date-using-tAggregateRow/m-p/2322468#M92412</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-23T17:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get the most recent date using tAggregateRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-most-recent-date-using-tAggregateRow/m-p/2322469#M92413</link>
      <description>How can you expect to carry data through if you're not grouping by it or doing some operation on it?  This just like SQL.</description>
      <pubDate>Fri, 24 May 2013 04:05:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-most-recent-date-using-tAggregateRow/m-p/2322469#M92413</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-05-24T04:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get the most recent date using tAggregateRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-most-recent-date-using-tAggregateRow/m-p/2322470#M92414</link>
      <description>Using the example set previously, I thought the tAggregateRow will 
&lt;BR /&gt;1. group records by license_idlicense
&lt;BR /&gt;2. extract the 
&lt;B&gt;full&lt;/B&gt; record where the start_date is the max and not only the start_date value
&lt;BR /&gt;So if I get your answer right alevy, I should add a tmap after my tAggregateRow to retrieve other value for each record. I though about this but I was looking for a more straightforward solution.
&lt;BR /&gt;thanks for your support.</description>
      <pubDate>Fri, 24 May 2013 04:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-most-recent-date-using-tAggregateRow/m-p/2322470#M92414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-24T04:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get the most recent date using tAggregateRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-most-recent-date-using-tAggregateRow/m-p/2322471#M92415</link>
      <description>If you want get the record with the max start date for each license_idlicense, the best way is to sort the flow by license_idlicense and descending start date and then use tUniqRow keyed on license_idlicense to drop all rows after the first for each license_idlicense.</description>
      <pubDate>Thu, 30 May 2013 07:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-most-recent-date-using-tAggregateRow/m-p/2322471#M92415</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-05-30T07:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get the most recent date using tAggregateRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-most-recent-date-using-tAggregateRow/m-p/2322472#M92416</link>
      <description>alevy, thanks for your answer.&lt;BR /&gt;I added a tmap after the tAggregateRow to get back all data I need, but I keep your process in the back of my mind for next time!</description>
      <pubDate>Thu, 30 May 2013 16:00:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-the-most-recent-date-using-tAggregateRow/m-p/2322472#M92416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-30T16:00:14Z</dc:date>
    </item>
  </channel>
</rss>

