<?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 Merge two subsequent rows in one file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306191#M77765</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to merge two subsequent rows into one row.&lt;/P&gt;&lt;P&gt;Is there any component that does it or could you please suggets appropriate logic to do so.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Mar 2018 09:05:24 GMT</pubDate>
    <dc:creator>vidya821</dc:creator>
    <dc:date>2018-03-08T09:05:24Z</dc:date>
    <item>
      <title>Merge two subsequent rows in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306191#M77765</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to merge two subsequent rows into one row.&lt;/P&gt;&lt;P&gt;Is there any component that does it or could you please suggets appropriate logic to do so.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 09:05:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306191#M77765</guid>
      <dc:creator>vidya821</dc:creator>
      <dc:date>2018-03-08T09:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two subsequent rows in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306192#M77766</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;Using tMap varaibles you are able to get simultaneously the current and the previous row of the same data flow.&lt;/P&gt; 
&lt;P&gt;Assume the input flow schema contains 1 field called "line", here is how to do what you expect in your tMap:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 904px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lt0f.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152915i5A00F696DC719D2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lt0f.png" alt="0683p000009Lt0f.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How it works:&lt;/P&gt; 
&lt;P&gt;-&amp;nbsp; rank variable is here to know if you are on an odd or even line&lt;/P&gt; 
&lt;P&gt;- currentLine is made of previousLine + input flow line&lt;/P&gt; 
&lt;P&gt;- previousLine receive input flow line&lt;/P&gt; 
&lt;P&gt;On output side, only if rank is even, currentLine variable is used to populate result field.&lt;/P&gt; 
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 09:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306192#M77766</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-03-08T09:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two subsequent rows in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306193#M77767</link>
      <description>&lt;P&gt;Thanks TRF,&lt;BR /&gt;This worked&amp;nbsp;perfect,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;just a clarification needed&lt;BR /&gt;How does tMap component knows that the row65.line which is used to output in variable previousLine is the earlier record and not the current one, since the same row65.line is used to append in the currentLine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Also if i change the position of the previousLine, then it shows a purple two way symbol, can u please tell me what does it signify.&lt;/P&gt;
&lt;P&gt;Thanks in advance&amp;nbsp;for clarifying the doubt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also came across uneven data as displayed in screenshot.&lt;/P&gt;
&lt;P&gt;Could you please suggest on how can i get the desired output.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsDv"&gt;screenshot1.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsQC"&gt;Uneven_data_merge.png&lt;/A&gt;</description>
      <pubDate>Fri, 09 Mar 2018 07:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306193#M77767</guid>
      <dc:creator>vidya821</dc:creator>
      <dc:date>2018-03-09T07:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two subsequent rows in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306194#M77768</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;tMap variables are affected in the order they appear in the tMap area.&lt;/P&gt;&lt;P&gt;So, in this case:&lt;/P&gt;&lt;P&gt;1- rank is computed&lt;/P&gt;&lt;P&gt;2- currentLine is affected with the value of previousLine (null for the 1rst line) + row65.line&lt;/P&gt;&lt;P&gt;3- row65.line is saved into&amp;nbsp;&lt;SPAN&gt;previousLine&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Don't forget to mark your case as solved.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 08:10:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306194#M77768</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-03-09T08:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two subsequent rows in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306195#M77769</link>
      <description>Thanks much !!&lt;BR /&gt;I am also facing another issue in merging the data, as seen in the screenshot Uneven_data_merge.&lt;BR /&gt;It would be great if you could suggest appropriate solution.&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Mar 2018 08:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306195#M77769</guid>
      <dc:creator>vidya821</dc:creator>
      <dc:date>2018-03-09T08:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two subsequent rows in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306196#M77770</link>
      <description>&lt;P&gt;The purple arrow indicate a variable (previousLine) is reused by an other variable defined later (currentLine).&lt;/P&gt;&lt;P&gt;It seems the arrow doesn't appear when you reuse a variable which is not yet defined (you are not supposed to do that, but now you it works fine).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I apologize for the mistake in my initial answer, I wrote odd instead or even.&lt;/P&gt;&lt;P&gt;Does this&amp;nbsp;answer you las question?&lt;/P&gt;&lt;P&gt;If not, are you able to reformulate or translate in french?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 08:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306196#M77770</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-03-09T08:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two subsequent rows in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306197#M77771</link>
      <description>Thanks,
&lt;BR /&gt;Yes, I have got the answer for my question.
&lt;BR /&gt;If i modify the position wherein it displays the purple Arrow, i dont get the desired output.
&lt;BR /&gt;The solution provided by you initially is correct and solves my purpose, however now i encountered another problem after further analysis of the data which i have mentioned in the screenshot.
&lt;BR /&gt;Can you please help me in resolving this.</description>
      <pubDate>Fri, 09 Mar 2018 08:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306197#M77771</guid>
      <dc:creator>vidya821</dc:creator>
      <dc:date>2018-03-09T08:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two subsequent rows in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306198#M77772</link>
      <description>&lt;P&gt;Can you clarify what is not conform to the expected result?&lt;/P&gt;&lt;P&gt;Give the input and output as text, not image if possible.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 08:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306198#M77772</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-03-09T08:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two subsequent rows in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306199#M77773</link>
      <description>&lt;P&gt;file with input and desired output is attached&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsJZ"&gt;Merge_uneven_data.txt&lt;/A&gt;</description>
      <pubDate>Fri, 09 Mar 2018 08:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306199#M77773</guid>
      <dc:creator>vidya821</dc:creator>
      <dc:date>2018-03-09T08:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two subsequent rows in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306200#M77774</link>
      <description>&lt;P&gt;Hi TRF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have designed a solutin which is working fine.&lt;/P&gt;&lt;P&gt;Could you check and let me know if this is generic one or not, since i have used certain data conditions to achieve it.&lt;/P&gt;&lt;P&gt;Or if you can suggest any other&amp;nbsp;generic way to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: In this solution i have aggregated&amp;nbsp;one column from one row and other column from respective group row&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LseP"&gt;Solution.png&lt;/A&gt;</description>
      <pubDate>Fri, 09 Mar 2018 09:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306200#M77774</guid>
      <dc:creator>vidya821</dc:creator>
      <dc:date>2018-03-09T09:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two subsequent rows in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306201#M77775</link>
      <description>&lt;P&gt;This is a derivation of the solution I proposed, so no problem.&lt;/P&gt;
&lt;P&gt;My understanding is that you have one or many style 2 lines for 1 style 1 line.&lt;/P&gt;
&lt;P&gt;In this case maybe the simplest approach is to restore the alternation style 1 / style 2 lines.&lt;/P&gt;
&lt;P&gt;Or maybe I don't understand completly what you expect.&lt;/P&gt;
&lt;P&gt;Anyway, I think now you can close the case (and open a new one if you want to ask how to&amp;nbsp;&lt;SPAN&gt;restore the alternation).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 09:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306201#M77775</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-03-09T09:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two subsequent rows in one file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306202#M77776</link>
      <description>Thanks&lt;BR /&gt;Yes, the initial clarification you shared helped me the get this solved.&lt;BR /&gt;However i would like to know the restore alternation approach, will raise a new topic.</description>
      <pubDate>Fri, 09 Mar 2018 09:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-two-subsequent-rows-in-one-file/m-p/2306202#M77776</guid>
      <dc:creator>vidya821</dc:creator>
      <dc:date>2018-03-09T09:42:36Z</dc:date>
    </item>
  </channel>
</rss>

