<?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: Assigning previous row id to next row in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Assigning-previous-row-id-to-next-row/m-p/2229565#M20469</link>
    <description>&lt;P&gt;This post answers a slightly different question, but you can use the method to do what you want. Essentially you are looking at the functionality which means that tMap variables are actioned in order from top to bottom and they preserve their values between rows.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCjPhCAK#M595" target="_blank"&gt;https://community.talend.com/t5/How-Tos-and-Best-Practices/Compare-row-value-against-a-value-from-the-previous-row/m-p/133710#M595&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Sep 2019 12:10:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-09-05T12:10:31Z</dc:date>
    <item>
      <title>Assigning previous row id to next row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assigning-previous-row-id-to-next-row/m-p/2229564#M20468</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table like&lt;/P&gt;&lt;P&gt;item_id,item_name&lt;/P&gt;&lt;P&gt;1,a&lt;/P&gt;&lt;P&gt;1,b&lt;/P&gt;&lt;P&gt;1,c&lt;/P&gt;&lt;P&gt;2,x&lt;/P&gt;&lt;P&gt;2,y&lt;/P&gt;&lt;P&gt;2,z&lt;/P&gt;&lt;P&gt;Now, I want the output to be like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;surr_key, item_id,item_name, parent_id&lt;/P&gt;&lt;P&gt;1,1,a,-1&lt;/P&gt;&lt;P&gt;2,1,b,1&lt;/P&gt;&lt;P&gt;3,1,c,2&lt;/P&gt;&lt;P&gt;4,2,x,-1&lt;/P&gt;&lt;P&gt;5,2,y,4&lt;/P&gt;&lt;P&gt;6,2,z,5&lt;/P&gt;&lt;P&gt;Here, surr_key is auto_increment and parent_id is the surr_key of precious row for the same item_id.&lt;/P&gt;&lt;P&gt;a is the first item for item_id=1 thus it will be -1 and same with x.&lt;/P&gt;&lt;P&gt;Can anyone help how to achieve it ?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assigning-previous-row-id-to-next-row/m-p/2229564#M20468</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2024-11-16T04:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning previous row id to next row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assigning-previous-row-id-to-next-row/m-p/2229565#M20469</link>
      <description>&lt;P&gt;This post answers a slightly different question, but you can use the method to do what you want. Essentially you are looking at the functionality which means that tMap variables are actioned in order from top to bottom and they preserve their values between rows.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCjPhCAK#M595" target="_blank"&gt;https://community.talend.com/t5/How-Tos-and-Best-Practices/Compare-row-value-against-a-value-from-the-previous-row/m-p/133710#M595&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 12:10:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assigning-previous-row-id-to-next-row/m-p/2229565#M20469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-05T12:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning previous row id to next row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assigning-previous-row-id-to-next-row/m-p/2229566#M20470</link>
      <description>how to do this with integer values, as the compareignorecase accepts string values only</description>
      <pubDate>Fri, 06 Sep 2019 07:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assigning-previous-row-id-to-next-row/m-p/2229566#M20470</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2019-09-06T07:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning previous row id to next row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assigning-previous-row-id-to-next-row/m-p/2229567#M20471</link>
      <description>&lt;P&gt;You can use&amp;nbsp;&lt;SPAN&gt;compareTo()&amp;nbsp; for Integers or == for primitive type ints&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 11:59:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assigning-previous-row-id-to-next-row/m-p/2229567#M20471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-06T11:59:43Z</dc:date>
    </item>
  </channel>
</rss>

