<?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 Create multiple output rows based on the input rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Create-multiple-output-rows-based-on-the-input-rows/m-p/2350171#M117054</link>
    <description>&lt;P&gt;Hi, I need to create multiple output rows based on my input, here an example:&lt;/P&gt;&lt;P&gt;my input is as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From------------- To------------ cod&lt;/P&gt;&lt;P&gt;2016-01-01 | 2016-05-31   |    1&lt;/P&gt;&lt;P&gt;2016-06-01 | 2016-09-30   |    1&lt;/P&gt;&lt;P&gt;2016-10-01 | 2016-11-30   |    1&lt;/P&gt;&lt;P&gt;2016-01-01 |     null            |    2 &lt;/P&gt;&lt;P&gt;2016-01-01 | 2016-06-30    |   3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and my ouput should be composed from two tables:&lt;/P&gt;&lt;P&gt;one with only unique cod&lt;/P&gt;&lt;P&gt;out1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cod &lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and a second table with all rows + 1 if there are a To field populated, as follow:&lt;/P&gt;&lt;P&gt;out2:&lt;/P&gt;&lt;P&gt;From------------- To------------ cod&lt;/P&gt;&lt;P&gt;2016-01-01  | 2016-05-31   |   1&lt;/P&gt;&lt;P&gt;2016-06-01  | 2016-09-30   |   1&lt;/P&gt;&lt;P&gt;2016-10-01  | 2016-11-30   |   1&lt;/P&gt;&lt;P&gt;2016-12-01  |    null             |   1&lt;/P&gt;&lt;P&gt;2016-01-01  |    null             |   2&lt;/P&gt;&lt;P&gt;2016-01-01  | 2016-06-30   |   3&lt;/P&gt;&lt;P&gt;2016-07-01  |     null            |   3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a way to achieve this?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:39:36 GMT</pubDate>
    <dc:creator>Serphentelm</dc:creator>
    <dc:date>2024-11-15T21:39:36Z</dc:date>
    <item>
      <title>Create multiple output rows based on the input rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-multiple-output-rows-based-on-the-input-rows/m-p/2350171#M117054</link>
      <description>&lt;P&gt;Hi, I need to create multiple output rows based on my input, here an example:&lt;/P&gt;&lt;P&gt;my input is as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From------------- To------------ cod&lt;/P&gt;&lt;P&gt;2016-01-01 | 2016-05-31   |    1&lt;/P&gt;&lt;P&gt;2016-06-01 | 2016-09-30   |    1&lt;/P&gt;&lt;P&gt;2016-10-01 | 2016-11-30   |    1&lt;/P&gt;&lt;P&gt;2016-01-01 |     null            |    2 &lt;/P&gt;&lt;P&gt;2016-01-01 | 2016-06-30    |   3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and my ouput should be composed from two tables:&lt;/P&gt;&lt;P&gt;one with only unique cod&lt;/P&gt;&lt;P&gt;out1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cod &lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and a second table with all rows + 1 if there are a To field populated, as follow:&lt;/P&gt;&lt;P&gt;out2:&lt;/P&gt;&lt;P&gt;From------------- To------------ cod&lt;/P&gt;&lt;P&gt;2016-01-01  | 2016-05-31   |   1&lt;/P&gt;&lt;P&gt;2016-06-01  | 2016-09-30   |   1&lt;/P&gt;&lt;P&gt;2016-10-01  | 2016-11-30   |   1&lt;/P&gt;&lt;P&gt;2016-12-01  |    null             |   1&lt;/P&gt;&lt;P&gt;2016-01-01  |    null             |   2&lt;/P&gt;&lt;P&gt;2016-01-01  | 2016-06-30   |   3&lt;/P&gt;&lt;P&gt;2016-07-01  |     null            |   3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a way to achieve this?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-multiple-output-rows-based-on-the-input-rows/m-p/2350171#M117054</guid>
      <dc:creator>Serphentelm</dc:creator>
      <dc:date>2024-11-15T21:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple output rows based on the input rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-multiple-output-rows-based-on-the-input-rows/m-p/2350172#M117055</link>
      <description>&lt;P&gt;I'd load the whole dataset into HsqlDB and write 2 queries that give you the needed output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using tMap you can split the dataflow.&lt;/P&gt;&lt;P&gt;But then you'd need to check if all the unique ID-s have a null value and if they don't then those should be appended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So purely  inside talend studio it would be really complicated and likely require a couple intermediate steps as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd choose the SQL approach in this case.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 10:42:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-multiple-output-rows-based-on-the-input-rows/m-p/2350172#M117055</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-21T10:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple output rows based on the input rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-multiple-output-rows-based-on-the-input-rows/m-p/2350173#M117056</link>
      <description>&lt;P&gt;Since I start with an sql table, I thought the same. Wuold be easier to recreate che ideal output via query, than having all the job done in Talend. &lt;/P&gt;&lt;P&gt;Asked this just to know if there was a way.&lt;/P&gt;&lt;P&gt;Thanks anyway&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 12:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-multiple-output-rows-based-on-the-input-rows/m-p/2350173#M117056</guid>
      <dc:creator>Serphentelm</dc:creator>
      <dc:date>2023-06-21T12:07:15Z</dc:date>
    </item>
  </channel>
</rss>

