<?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: Load previous day data  as a start data for the next day in Talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Load-previous-day-data-as-a-start-data-for-the-next-day-in/m-p/2212010#M9800</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Its very easy with Talend. Please refer the below screenshots.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 762px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7ik.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150790iD8EF8E096D450AB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7ik.png" alt="0683p000009M7ik.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&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-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7qi.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138344i423E05C4C91F9BB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7qi.png" alt="0683p000009M7qi.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You need to read the same file twice for main and lookup flow. In the lookup join condition, you need to join based on meter name and date -1. The function for date -1 is as shown below.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;TalendDate.addDate(row1.reading_date,-1,"DD") &lt;/PRE&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; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2019 15:28:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-21T15:28:02Z</dc:date>
    <item>
      <title>Load previous day data  as a start data for the next day in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-previous-day-data-as-a-start-data-for-the-next-day-in/m-p/2212009#M9799</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am trying to design a job which will capture Daily power readings. The input file contains data of the daily readings for different power reading meters. The readings of the output have to be updated as the start data and end data .The readings of the previous day reading of a meter should be loaded as start date for that meter&amp;nbsp;for the next day. and the readings will be loaded directly as end data&lt;/P&gt; 
&lt;P&gt;ie&amp;nbsp;&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;INPUT&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;Meter_Name&amp;nbsp;&lt;/TD&gt; 
   &lt;TD&gt;Date&lt;/TD&gt; 
   &lt;TD&gt;readings&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;A&lt;/TD&gt; 
   &lt;TD&gt;20/10/2019&lt;/TD&gt; 
   &lt;TD&gt;100&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;B&lt;/TD&gt; 
   &lt;TD&gt;20/10/2019&lt;/TD&gt; 
   &lt;TD&gt;150&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;A&lt;/TD&gt; 
   &lt;TD&gt;21/10/2019&lt;/TD&gt; 
   &lt;TD&gt;300&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;B&lt;/TD&gt; 
   &lt;TD&gt;21/10/2019&lt;/TD&gt; 
   &lt;TD&gt;250&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;the expected output is&amp;nbsp;&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;Meter_Name&lt;/TD&gt; 
   &lt;TD&gt;Date&lt;/TD&gt; 
   &lt;TD&gt;Start Data&lt;/TD&gt; 
   &lt;TD&gt;End Data&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;A&lt;/TD&gt; 
   &lt;TD&gt;20/10/2019&lt;/TD&gt; 
   &lt;TD&gt;&amp;nbsp;&lt;/TD&gt; 
   &lt;TD&gt;100&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;B&lt;/TD&gt; 
   &lt;TD&gt;20/10/2019&lt;/TD&gt; 
   &lt;TD&gt;&amp;nbsp;&lt;/TD&gt; 
   &lt;TD&gt;150&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;A&lt;/TD&gt; 
   &lt;TD&gt;21/10/2019&lt;/TD&gt; 
   &lt;TD&gt;100&lt;/TD&gt; 
   &lt;TD&gt;300&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;B&lt;/TD&gt; 
   &lt;TD&gt;21/10/2019&lt;/TD&gt; 
   &lt;TD&gt;150&lt;/TD&gt; 
   &lt;TD&gt;250&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please suggest a method to implement this logic in Talend&amp;nbsp; job.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-previous-day-data-as-a-start-data-for-the-next-day-in/m-p/2212009#M9799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Load previous day data  as a start data for the next day in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-previous-day-data-as-a-start-data-for-the-next-day-in/m-p/2212010#M9800</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Its very easy with Talend. Please refer the below screenshots.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 762px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7ik.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150790iD8EF8E096D450AB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7ik.png" alt="0683p000009M7ik.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&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-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7qi.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138344i423E05C4C91F9BB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7qi.png" alt="0683p000009M7qi.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You need to read the same file twice for main and lookup flow. In the lookup join condition, you need to join based on meter name and date -1. The function for date -1 is as shown below.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;TalendDate.addDate(row1.reading_date,-1,"DD") &lt;/PRE&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; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 15:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-previous-day-data-as-a-start-data-for-the-next-day-in/m-p/2212010#M9800</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-21T15:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Load previous day data  as a start data for the next day in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-previous-day-data-as-a-start-data-for-the-next-day-in/m-p/2212011#M9801</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;. It worked for me.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 17:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-previous-day-data-as-a-start-data-for-the-next-day-in/m-p/2212011#M9801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-21T17:58:19Z</dc:date>
    </item>
  </channel>
</rss>

