<?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: [resolved] Explode one row into many rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Explode-one-row-into-many-rows/m-p/2305469#M77117</link>
    <description>Thank you very much Alvey...i tried the way you said...its working perfect. 
&lt;BR /&gt;Once again thank you 
&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;BR /&gt;sanguine</description>
    <pubDate>Fri, 11 Jun 2010 15:23:43 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2010-06-11T15:23:43Z</dc:date>
    <item>
      <title>[resolved] Explode one row into many rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Explode-one-row-into-many-rows/m-p/2305467#M77115</link>
      <description>Hi...&lt;BR /&gt;Thanks in advance for your help.&lt;BR /&gt;I have a requirement like.. I need to split one row into multiple rows based on the days between the start and end date. &lt;BR /&gt;Example: Source Table&lt;BR /&gt;Name, Value, Start_Date, End_Date&lt;BR /&gt;A, 20, 01-Jan-2010, 04-Jan-2010&lt;BR /&gt;B, 10, 20-Jan-2010, 21-Jan-2010&lt;BR /&gt;Target Table&lt;BR /&gt;Name, Value, Date&lt;BR /&gt;A, 5, 01-Jan-2010&lt;BR /&gt;A, 5, 02-Jan-2010&lt;BR /&gt;A, 5, 03-Jan-2010&lt;BR /&gt;A, 5, 04-Jan-2010&lt;BR /&gt;B, 5, 20-Jan-2010&lt;BR /&gt;b, 5, 21-Jan-2010&lt;BR /&gt;Can any one pls help me how to get this done using Talend?&lt;BR /&gt;Thanks&lt;BR /&gt;sanguine</description>
      <pubDate>Sat, 16 Nov 2024 13:24:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Explode-one-row-into-many-rows/m-p/2305467#M77115</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T13:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Explode one row into many rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Explode-one-row-into-many-rows/m-p/2305468#M77116</link>
      <description>&lt;P&gt;Nice one!&lt;BR /&gt;You need the following:&lt;BR /&gt;--Main--&amp;gt; tFlowToIterate --Iterate--&amp;gt; tJava --Iterate--&amp;gt; tLoop --Iterate--&amp;gt; tIterateToFlow --Main--&amp;gt;&lt;BR /&gt;In tFlowToIterate, assign each of the field values to keys: "Name", "Value", "StartDate", "EndDate".&lt;BR /&gt;In tJava,&lt;/P&gt;&lt;PRE&gt;Long lngPeriod = TalendDate.diffDateIgnoreDST((java.util.Date)globalMap.get("EndDate"),(java.util.Date)globalMap.get("StartDate"),"dd")+1;&lt;BR /&gt;Integer intPeriod = lngPeriod.intValue();&lt;BR /&gt;globalMap.put("Period",intPeriod);&lt;BR /&gt;globalMap.put("DayValue",(Integer)globalMap.get("Value")/intPeriod);&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;tLoop from 1 to (Integer)globalMap.get("Period") in steps of 1.&lt;BR /&gt;tIterateToFlow:&lt;BR /&gt;(String)globalMap.get("Name")&lt;BR /&gt;(Integer)globalMap.get("DayValue")&lt;BR /&gt;TalendDate.addDate((java.util.Date)globalMap.get("StartDate"),(Integer)globalMap.get("tLoop_2_CURRENT_ITERATION")-1,"dd")&lt;BR /&gt;Voila!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2010 05:32:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Explode-one-row-into-many-rows/m-p/2305468#M77116</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-06-09T05:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Explode one row into many rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Explode-one-row-into-many-rows/m-p/2305469#M77117</link>
      <description>Thank you very much Alvey...i tried the way you said...its working perfect. 
&lt;BR /&gt;Once again thank you 
&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;BR /&gt;sanguine</description>
      <pubDate>Fri, 11 Jun 2010 15:23:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Explode-one-row-into-many-rows/m-p/2305469#M77117</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2010-06-11T15:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Explode one row into many rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Explode-one-row-into-many-rows/m-p/2305470#M77118</link>
      <description>This could probably be achieved more efficiently with an approach similar to 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCjTHCA0" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/How-to-create-multiple-rows-out-from-a-row-input/td-p/68500&lt;/A&gt;.</description>
      <pubDate>Wed, 20 Oct 2010 01:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Explode-one-row-into-many-rows/m-p/2305470#M77118</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-10-20T01:50:06Z</dc:date>
    </item>
  </channel>
</rss>

