<?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: Get updated date through tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Get-updated-date-through-tMap/m-p/2283456#M57373</link>
    <description>&lt;P&gt;Hello ,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I took below as input&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2/19/2019;2/21/2019;A&lt;BR /&gt;2/05/2019;3/21/2019;A&lt;BR /&gt;2/19/2019;3/21/2019;A&lt;BR /&gt;2/19/2019;2/21/2019;B&lt;BR /&gt;2/05/2019;3/21/2019;B&lt;BR /&gt;2/19/2019;3/21/2019;B&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;read file (while reading you could read it as Date with pattern MM/dd/yyyy) --&amp;gt; tsort (on 2nd col desc then 1st col desc then 3rd col) --&amp;gt; tsamplerow ( for test -to get 1st 2 record) --&amp;gt; tLogrow&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TalendSolution_5.JPG" style="width: 668px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M21e.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129008i37F7440E4C851739/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M21e.jpg" alt="0683p000009M21e.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;i got this as output&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;2/19/2019;3/21/2019;A&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;2/19/2019;3/21/2019;B&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;But if you are not doing any lookup in tMap( 3rd column) after tsortRow , better to go with tAggregateRow/tAggregateSortedRow.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jan 2019 21:23:31 GMT</pubDate>
    <dc:creator>akumar2301</dc:creator>
    <dc:date>2019-01-16T21:23:31Z</dc:date>
    <item>
      <title>Get updated date through tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-updated-date-through-tMap/m-p/2283452#M57369</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can you please advise me how to get the highlighted data through tMap coding?&lt;/P&gt; 
&lt;P&gt;For the same PO, the source report contains multiple records. the highlighted one is the latest one which I need for the result.&lt;/P&gt; 
&lt;P&gt;For now I do not have any idea to achieve this.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for the help!&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="Capture.JPG" style="width: 238px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1uS.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155961iC6C59A2AFC3B643D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1uS.jpg" alt="0683p000009M1uS.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 21:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-updated-date-through-tMap/m-p/2283452#M57369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-11T21:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get updated date through tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-updated-date-through-tMap/m-p/2283453#M57370</link>
      <description>you could you tsort before going to tmap so that latest is at top , then if you doing lookup innerjoin user first match</description>
      <pubDate>Fri, 11 Jan 2019 22:04:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-updated-date-through-tMap/m-p/2283453#M57370</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-01-11T22:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get updated date through tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-updated-date-through-tMap/m-p/2283454#M57371</link>
      <description>&lt;P&gt;better to use &lt;A href="https://help.talend.com/reader/mjoDghHoMPI0yuyZ83a13Q/yj8JuBj57qWaYoFqIewUiA" target="_self" rel="nofollow noopener noreferrer"&gt;tAggregateRow&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;of course you can store data to tHashOutput and then use in tMap for join with all data (if you need this)&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jan 2019 11:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-updated-date-through-tMap/m-p/2283454#M57371</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-01-12T11:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get updated date through tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-updated-date-through-tMap/m-p/2283455#M57372</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for the reply. I have tried using tSortRow to DESC the date. But then I got reverse dates.&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The flow I created is below as well - not sure which part has problem. tMap_1 is used to transfer "String" to "Date" data type. Then I sorted both ETD and ETA DESC. the second tMap is used to do the logic for my task.&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lz3c.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143814i3695B8D73858ED24/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lz3c.jpg" alt="0683p000009Lz3c.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1sD.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157738i99ECEC805A14DC75/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1sD.jpg" alt="0683p000009M1sD.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 19:32:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-updated-date-through-tMap/m-p/2283455#M57372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-16T19:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get updated date through tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-updated-date-through-tMap/m-p/2283456#M57373</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I took below as input&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2/19/2019;2/21/2019;A&lt;BR /&gt;2/05/2019;3/21/2019;A&lt;BR /&gt;2/19/2019;3/21/2019;A&lt;BR /&gt;2/19/2019;2/21/2019;B&lt;BR /&gt;2/05/2019;3/21/2019;B&lt;BR /&gt;2/19/2019;3/21/2019;B&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;read file (while reading you could read it as Date with pattern MM/dd/yyyy) --&amp;gt; tsort (on 2nd col desc then 1st col desc then 3rd col) --&amp;gt; tsamplerow ( for test -to get 1st 2 record) --&amp;gt; tLogrow&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TalendSolution_5.JPG" style="width: 668px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M21e.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129008i37F7440E4C851739/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M21e.jpg" alt="0683p000009M21e.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;i got this as output&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;2/19/2019;3/21/2019;A&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;2/19/2019;3/21/2019;B&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;But if you are not doing any lookup in tMap( 3rd column) after tsortRow , better to go with tAggregateRow/tAggregateSortedRow.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 21:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-updated-date-through-tMap/m-p/2283456#M57373</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-01-16T21:23:31Z</dc:date>
    </item>
  </channel>
</rss>

