<?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: need help on below scenario in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/need-help-on-below-scenario/m-p/2258614#M40358</link>
    <description>&lt;P&gt;Another way to implement is using tMap functionality &lt;U&gt;to memories prev record information&lt;/U&gt;.&lt;/P&gt; 
&lt;P&gt;( Solution is work assuming your Input to tmap is sorted for ID and Date (Ascending))&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="TalendImage.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M34Y.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155925i29F548D33738C758/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M34Y.jpg" alt="0683p000009M34Y.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Result&lt;/P&gt; 
&lt;P&gt;32145|04-03-2015|0&lt;BR /&gt;32145|09-02-2016|1&lt;BR /&gt;32145|12-11-2016|2&lt;BR /&gt;32145|05-03-2017|2&lt;BR /&gt;32145|23-12-2017|3&lt;BR /&gt;32172|05-03-2015|0&lt;BR /&gt;32172|04-05-2015|0&lt;BR /&gt;32172|03-02-2016|1&lt;BR /&gt;32172|04-12-2016|2&lt;BR /&gt;32172|03-05-2017|2&lt;/P&gt;</description>
    <pubDate>Tue, 12 Feb 2019 12:34:40 GMT</pubDate>
    <dc:creator>akumar2301</dc:creator>
    <dc:date>2019-02-12T12:34:40Z</dc:date>
    <item>
      <title>need help on below scenario</title>
      <link>https://community.qlik.com/t5/Talend-Studio/need-help-on-below-scenario/m-p/2258610#M40354</link>
      <description>&lt;P&gt;I have input data Like below , the requirement is to calculate the count of date which are more than 9 months for each ID&lt;/P&gt;
&lt;P&gt;ID|Date&lt;BR /&gt;32145|04-03-2015&lt;BR /&gt;32145|09-02-2016&lt;BR /&gt;32145|12-11-2016&lt;BR /&gt;32145|05-03-2017&lt;BR /&gt;32145|23-12-2017&lt;/P&gt;
&lt;P&gt;32172|05-03-2015&lt;BR /&gt;32172|04-05-2015&lt;BR /&gt;32172|03-02-2016&lt;BR /&gt;32172|04-12-2016&lt;BR /&gt;32172|03-05-2017&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output data should be looks like this&lt;/P&gt;
&lt;P&gt;ID|Date|Count&lt;BR /&gt;32145|23-12-2017|3&lt;BR /&gt;32172|04-12-2016|2&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 10:44:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/need-help-on-below-scenario/m-p/2258610#M40354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-12T10:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: need help on below scenario</title>
      <link>https://community.qlik.com/t5/Talend-Studio/need-help-on-below-scenario/m-p/2258611#M40355</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not able to understand your expected result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ID|Date|Count&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;32145|23-12-2017|3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;32172|04-12-2016|2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please explain the logic for Date and Count Here . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 11:30:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/need-help-on-below-scenario/m-p/2258611#M40355</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-02-12T11:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: need help on below scenario</title>
      <link>https://community.qlik.com/t5/Talend-Studio/need-help-on-below-scenario/m-p/2258612#M40356</link>
      <description>&lt;P&gt;&lt;SPAN&gt;ok see for below ID 32145&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;already date are in ascending order the requirement is to take the diff of date like "04-03-2015-09-02-2016" which greater than 9 months then count=1 and again need to take the diff of&amp;nbsp; "09-02-2016 - 12-11-2016 " which is also greater than 9 months so count will increment to 2 (count =2) now take the same diff to next date "12-11-2016 - 05-03-2017"&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;which is not greater than 9 months so count is same here i.e (count =2) , now for next date "05-03-2017-23-12-2017"&amp;nbsp; diff is greater than 9 months so count will increment&amp;nbsp;to 3(count=3) and need to take the last diff date . this all for one group ID 32145 like this need to do all ID's . I just provided here 2 sample record&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;32145|04-03-2015&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;32145|09-02-2016&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;32145|12-11-2016&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;32145|05-03-2017&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;32145|23-12-2017&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Hope this cleared you requirement&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Dhanraj&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 11:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/need-help-on-below-scenario/m-p/2258612#M40356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-12T11:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: need help on below scenario</title>
      <link>https://community.qlik.com/t5/Talend-Studio/need-help-on-below-scenario/m-p/2258613#M40357</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; I believe you are looking for the below solution.&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="image.png" style="width: 870px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M349.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148186iD3373A295D3DFA75/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M349.png" alt="0683p000009M349.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the first subjob, I will add a numeric sequence to identify the number of rows for each id (assuming the values are coming in sorted fashion).&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M34E.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148470i13016E4E63B8FCA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M34E.png" alt="0683p000009M34E.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The data will be passed to a hash (or file if you want) and the same hash will be read from both main and lookup flows. In the tmap, I will map the previous record with next record by joining based on sequence number and pick the records where the month difference is &amp;gt;=9.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M34O.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149638i1D4EA2933C9DBB44/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M34O.png" alt="0683p000009M34O.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The expression filter is as shown below.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;TalendDate.diffDate(row2.input_date,row3.input_date,"MM") &amp;gt;=9&lt;/PRE&gt; 
&lt;P&gt;Then I will aggregate the output using taggregaterow as shown below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M34T.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129642i0DD256318698CA26/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M34T.png" alt="0683p000009M34T.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The output is as shown below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 297px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2yW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138975i8352B6D913388B44/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2yW.png" alt="0683p000009M2yW.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Hope I have answered your query &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 11:50:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/need-help-on-below-scenario/m-p/2258613#M40357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-12T11:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: need help on below scenario</title>
      <link>https://community.qlik.com/t5/Talend-Studio/need-help-on-below-scenario/m-p/2258614#M40358</link>
      <description>&lt;P&gt;Another way to implement is using tMap functionality &lt;U&gt;to memories prev record information&lt;/U&gt;.&lt;/P&gt; 
&lt;P&gt;( Solution is work assuming your Input to tmap is sorted for ID and Date (Ascending))&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="TalendImage.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M34Y.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155925i29F548D33738C758/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M34Y.jpg" alt="0683p000009M34Y.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Result&lt;/P&gt; 
&lt;P&gt;32145|04-03-2015|0&lt;BR /&gt;32145|09-02-2016|1&lt;BR /&gt;32145|12-11-2016|2&lt;BR /&gt;32145|05-03-2017|2&lt;BR /&gt;32145|23-12-2017|3&lt;BR /&gt;32172|05-03-2015|0&lt;BR /&gt;32172|04-05-2015|0&lt;BR /&gt;32172|03-02-2016|1&lt;BR /&gt;32172|04-12-2016|2&lt;BR /&gt;32172|03-05-2017|2&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 12:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/need-help-on-below-scenario/m-p/2258614#M40358</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-02-12T12:34:40Z</dc:date>
    </item>
  </channel>
</rss>

