<?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 make conditionnal increment in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-conditionnal-increment/m-p/2305793#M77409</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, but that doesn't solve my problem.&lt;/P&gt;&lt;P&gt;With Numeric.Sequence("S1",1,1)&lt;/P&gt;&lt;P&gt;I end up at the output with a file&lt;/P&gt;&lt;P&gt;AAA 1&lt;/P&gt;&lt;P&gt;AAA 2&lt;/P&gt;&lt;P&gt;AAA 3&lt;/P&gt;&lt;P&gt;BBB 4&lt;/P&gt;&lt;P&gt;BBB 5&lt;/P&gt;&lt;P&gt;BBB 6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the increment to reset automatically when the first field changes (AAA becomes BBB then CCC...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AAA 1&lt;/P&gt;&lt;P&gt;AAA 2&lt;/P&gt;&lt;P&gt;AAA 3&lt;/P&gt;&lt;P&gt;BBB 1&lt;/P&gt;&lt;P&gt;BBB 2&lt;/P&gt;&lt;P&gt;BBB 3&lt;/P&gt;&lt;P&gt;CCC 1....&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2022 16:40:16 GMT</pubDate>
    <dc:creator>IT-Vivo_group</dc:creator>
    <dc:date>2022-06-07T16:40:16Z</dc:date>
    <item>
      <title>How to make conditionnal increment</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-conditionnal-increment/m-p/2305791#M77407</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hello, &lt;/P&gt;&lt;P&gt;I'm looking to increment a field based on another field in a TMAP with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to increment each line having the same value in the second field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have to use the command Numeric.resetSequence("s1",1) but I don't know how to insert the condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the input file, i have&lt;/P&gt;&lt;P&gt;AAA  &lt;/P&gt;&lt;P&gt;AAA  &lt;/P&gt;&lt;P&gt;AAA  &lt;/P&gt;&lt;P&gt;BBB  &lt;/P&gt;&lt;P&gt;BBB  &lt;/P&gt;&lt;P&gt;BBB  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the expected result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AAA   1&lt;/P&gt;&lt;P&gt;AAA   2&lt;/P&gt;&lt;P&gt;AAA   3&lt;/P&gt;&lt;P&gt;BBB   1&lt;/P&gt;&lt;P&gt;BBB   2&lt;/P&gt;&lt;P&gt;BBB   3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your feedback&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-conditionnal-increment/m-p/2305791#M77407</guid>
      <dc:creator>IT-Vivo_group</dc:creator>
      <dc:date>2024-11-15T22:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to make conditionnal increment</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-conditionnal-increment/m-p/2305792#M77408</link>
      <description>&lt;P&gt;Hi @Service IT Vivo group​&amp;nbsp;, you just have to put Numeric.Sequence("S1",1,1) in an output field of data type int of a tMap, &lt;/P&gt;&lt;P&gt;you just have to remind that when you create a sequence and you want to use it in another part of the job it won't be reset and continue to increment, you have to reset it first. If you just want to use it in one part of the job you just have to use Numeric.Sequence("S1",1,1) , with "S1" the name of the sequence, 1 the start value  and another 1 the increment value.&lt;/P&gt;&lt;P&gt;Send me love and kudos.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 15:34:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-conditionnal-increment/m-p/2305792#M77408</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-06-07T15:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to make conditionnal increment</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-conditionnal-increment/m-p/2305793#M77409</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, but that doesn't solve my problem.&lt;/P&gt;&lt;P&gt;With Numeric.Sequence("S1",1,1)&lt;/P&gt;&lt;P&gt;I end up at the output with a file&lt;/P&gt;&lt;P&gt;AAA 1&lt;/P&gt;&lt;P&gt;AAA 2&lt;/P&gt;&lt;P&gt;AAA 3&lt;/P&gt;&lt;P&gt;BBB 4&lt;/P&gt;&lt;P&gt;BBB 5&lt;/P&gt;&lt;P&gt;BBB 6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the increment to reset automatically when the first field changes (AAA becomes BBB then CCC...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AAA 1&lt;/P&gt;&lt;P&gt;AAA 2&lt;/P&gt;&lt;P&gt;AAA 3&lt;/P&gt;&lt;P&gt;BBB 1&lt;/P&gt;&lt;P&gt;BBB 2&lt;/P&gt;&lt;P&gt;BBB 3&lt;/P&gt;&lt;P&gt;CCC 1....&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 16:40:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-conditionnal-increment/m-p/2305793#M77409</guid>
      <dc:creator>IT-Vivo_group</dc:creator>
      <dc:date>2022-06-07T16:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to make conditionnal increment</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-conditionnal-increment/m-p/2305794#M77410</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;If you want to use one sequence for each product(AAA, BBB,CCC)&lt;/P&gt;&lt;P&gt;For example, if your main input is row1 and the input first field is product&lt;/P&gt;&lt;P&gt;Numeric.sequence(row1.product,1,1).&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 08:44:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-conditionnal-increment/m-p/2305794#M77410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-09T08:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to make conditionnal increment</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-conditionnal-increment/m-p/2305795#M77411</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is exactly that i want.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 09:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-conditionnal-increment/m-p/2305795#M77411</guid>
      <dc:creator>IT-Vivo_group</dc:creator>
      <dc:date>2022-06-09T09:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to make conditionnal increment</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-conditionnal-increment/m-p/2305796#M77412</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Great it helps. Feel free to let us know if there is any further help we can give.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 03:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-conditionnal-increment/m-p/2305796#M77412</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-10T03:34:40Z</dc:date>
    </item>
  </channel>
</rss>

