<?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: How to achive from one Date to multiple dates in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-achive-from-one-Date-to-multiple-dates/m-p/2262771#M43128</link>
    <description>&lt;P&gt;thank u very much i will try and let u know&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2017 17:07:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-11T17:07:26Z</dc:date>
    <item>
      <title>How to achive from one Date to multiple dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-achive-from-one-Date-to-multiple-dates/m-p/2262767#M43124</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="source" style="width: 200px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lu7I.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140906i658F08B905976745/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lu7I.png" alt="0683p000009Lu7I.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;source&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="target" style="width: 200px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lu1v.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143508i010E4B1C4A48D5B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lu1v.png" alt="0683p000009Lu1v.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;target&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;By using this source file how to get multiple dates in order&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-achive-from-one-Date-to-multiple-dates/m-p/2262767#M43124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to achive from one Date to multiple dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-achive-from-one-Date-to-multiple-dates/m-p/2262768#M43125</link>
      <description>Using TalendDate routines (&lt;A href="https://help.talend.com/display/TalendOpenStudioforBigDataUserGuide520EN/10.5+TalendDate+Routines" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/display/TalendOpenStudioforBigDataUserGuide520EN/10.5+TalendDate+Routines&lt;/A&gt;) compute the difference between start and end date, then tLoop from 1 to nb_days, add i to start date giving current date. You got what you need for your job.</description>
      <pubDate>Tue, 09 May 2017 19:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-achive-from-one-Date-to-multiple-dates/m-p/2262768#M43125</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-09T19:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to achive from one Date to multiple dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-achive-from-one-Date-to-multiple-dates/m-p/2262769#M43126</link>
      <description>&lt;P&gt;Can you please help me.I tried with tjava and tloop but not able to do&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 04:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-achive-from-one-Date-to-multiple-dates/m-p/2262769#M43126</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T04:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to achive from one Date to multiple dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-achive-from-one-Date-to-multiple-dates/m-p/2262770#M43127</link>
      <description>&lt;P&gt;This is actually a bit tricky.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I did some rough work and came up with this solution. Hope it gives you some idea.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You have to first calculate the difference between the start date and end date and store it in a context value.&lt;/P&gt; 
&lt;P&gt;Then for each row, you have to use the tLoop component to generate the missing dates.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The layout of the job,&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dataFlow.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuQ1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142015iA2652BB80F4BCE2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuQ1.png" alt="0683p000009LuQ1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;tMap12 Config,&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tMap12.PNG" style="width: 541px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuNC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137342i36966A56AC4A9AC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuNC.png" alt="0683p000009LuNC.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tJava Code,&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="tjava1.PNG" style="width: 503px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuQU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147285i7A869E6E52F743EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuQU.png" alt="0683p000009LuQU.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tLoop Config,&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tLoop.PNG" style="width: 507px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuOA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132911iDB2D482D03A67B6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuOA.png" alt="0683p000009LuOA.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;tFixedFlow Component Config,&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tfixedFlow.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lu4k.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130967i84E04EE8E29EA8E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lu4k.png" alt="0683p000009Lu4k.png" /&gt;&lt;/span&gt;&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; 
&lt;P&gt;tMap13 config,&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tMap13.PNG" style="width: 587px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuM5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141367i7AA551D8DD8355A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuM5.png" alt="0683p000009LuM5.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Here we have two contexts created. One is the context&amp;nbsp;&lt;STRONG&gt;Loop&lt;/STRONG&gt; of integer datatype for storing the max loop number.&lt;/P&gt; 
&lt;P&gt;Other one is the context &lt;STRONG&gt;startDate&lt;/STRONG&gt; of datatype date for storing the starting date.&lt;/P&gt; 
&lt;P&gt;Remember to check the append option if your output is a file.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;There might be a better way to do this. Hopefully this template&amp;nbsp;gets you started on what you want.&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; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 13:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-achive-from-one-Date-to-multiple-dates/m-p/2262770#M43127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T13:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to achive from one Date to multiple dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-achive-from-one-Date-to-multiple-dates/m-p/2262771#M43128</link>
      <description>&lt;P&gt;thank u very much i will try and let u know&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 17:07:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-achive-from-one-Date-to-multiple-dates/m-p/2262771#M43128</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T17:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to achive from one Date to multiple dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-achive-from-one-Date-to-multiple-dates/m-p/2262772#M43129</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;Thanks to&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLw1AAG"&gt;@ArvinRapt&lt;/A&gt;&amp;nbsp;to have detailed the solution I proposed.&lt;/P&gt; 
&lt;P&gt;I don't think it's too much tricky.&lt;/P&gt; 
&lt;P&gt;Maybe you can change tJava by tSetGlobalVar and use global variables instead of context variables, but it's a detail.&lt;/P&gt; 
&lt;P&gt;Also I think you can move the operation made in the tMap into the tFixedFlowInput component to comple the startDate field.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 17:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-achive-from-one-Date-to-multiple-dates/m-p/2262772#M43129</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-11T17:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to achive from one Date to multiple dates</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-achive-from-one-Date-to-multiple-dates/m-p/2262773#M43130</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;Agreed. Those two suggestions make the job easier on the eyes.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 19:37:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-achive-from-one-Date-to-multiple-dates/m-p/2262773#M43130</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T19:37:02Z</dc:date>
    </item>
  </channel>
</rss>

