<?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 Compare current date to yesterday and if two fields are the same then set another record to +1 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Compare-current-date-to-yesterday-and-if-two-fields-are-the-same/m-p/2272029#M49422</link>
    <description>&lt;P&gt;OK all smart people &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am struggling with using tMap and tJavaRow and tAggregate for the below.&lt;BR /&gt;What I am trying to accomplish is I am trying to look at the current date and see if yesterdays date has the same values for RuleName and AccountNumber and if it does then the field CountByKDE gets a +1 value (so if it was 0 it goes to 1, if it is 2 it goes to 3) up to the value of 5 then an email will go out.&amp;nbsp; I already have the email job done.&amp;nbsp; How do I accomplish this please help.&lt;BR /&gt;&lt;BR /&gt;Chantelle&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:01:29 GMT</pubDate>
    <dc:creator>dudda</dc:creator>
    <dc:date>2024-11-16T04:01:29Z</dc:date>
    <item>
      <title>Compare current date to yesterday and if two fields are the same then set another record to +1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-current-date-to-yesterday-and-if-two-fields-are-the-same/m-p/2272029#M49422</link>
      <description>&lt;P&gt;OK all smart people &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am struggling with using tMap and tJavaRow and tAggregate for the below.&lt;BR /&gt;What I am trying to accomplish is I am trying to look at the current date and see if yesterdays date has the same values for RuleName and AccountNumber and if it does then the field CountByKDE gets a +1 value (so if it was 0 it goes to 1, if it is 2 it goes to 3) up to the value of 5 then an email will go out.&amp;nbsp; I already have the email job done.&amp;nbsp; How do I accomplish this please help.&lt;BR /&gt;&lt;BR /&gt;Chantelle&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-current-date-to-yesterday-and-if-two-fields-are-the-same/m-p/2272029#M49422</guid>
      <dc:creator>dudda</dc:creator>
      <dc:date>2024-11-16T04:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Compare current date to yesterday and if two fields are the same then set another record to +1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-current-date-to-yesterday-and-if-two-fields-are-the-same/m-p/2272030#M49423</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; You can store the&amp;nbsp;&lt;SPAN&gt;RuleName and AccountNumber&amp;nbsp;to two context variables. Similarly, store the&amp;nbsp;CountByKDE&amp;nbsp; value also to the context variable. Now, in the tjavarow, write a java if condition which will match the incoming record with context variables for&amp;nbsp;RuleName and AccountNumber.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; If it matches, increment the current value by 1. Connect to email job with a Run if condition and inside Run if condition, check the value of&amp;nbsp;CountByKDE&amp;nbsp; variable. That way, you can control the job call to email component.&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;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 01:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-current-date-to-yesterday-and-if-two-fields-are-the-same/m-p/2272030#M49423</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-27T01:55:23Z</dc:date>
    </item>
  </channel>
</rss>

