<?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: Increment a value to a group based on a criterion in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Increment-a-value-to-a-group-based-on-a-criterion/m-p/2374885#M137407</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a few days of hindsight, I found the solution and I post the solution for those to whom it would be useful.&lt;/P&gt;&lt;P&gt;In fact, it suffices to break down the actions.&lt;/P&gt;&lt;P&gt;First, I filter my level 1 lines to keep only one while keeping the information and thus set up a counter on these lines.&lt;/P&gt;&lt;P&gt;This allows me to subsequently cross-reference the data between the initial data of my file and the identifiers of each level 1 according to each line concerned in my file. This allows me to obtain the desired result.&lt;/P&gt;&lt;P&gt;Sometimes taking a step back from a problem can help ...&lt;/P&gt;</description>
    <pubDate>Mon, 15 Nov 2021 13:36:44 GMT</pubDate>
    <dc:creator>Mr_B</dc:creator>
    <dc:date>2021-11-15T13:36:44Z</dc:date>
    <item>
      <title>Increment a value to a group based on a criterion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Increment-a-value-to-a-group-based-on-a-criterion/m-p/2374884#M137406</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stuck on a simple problem but I admit that by dint of searching, I cannot find the solution and it&lt;/P&gt;&lt;P&gt;drives crazy. I have a file which contains multiple lines with different levels and am looking to increment&lt;/P&gt;&lt;P&gt;an identifier at each level 1 and assign this identifier to all lines of the same level.&lt;/P&gt;&lt;P&gt;I thought of the "numeric sequence" but it increments me the value at each line of the level and not at the group.&lt;/P&gt;&lt;P&gt;Do you have any advice, I'm going nuts with this blocking problem for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either an input file with the following lines:&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;LEVEL;NAME;VALUE&lt;/P&gt;&lt;P&gt;0;aaa;111&lt;/P&gt;&lt;P&gt;0;bbb;222&lt;/P&gt;&lt;P&gt;1;ccc;333&lt;/P&gt;&lt;P&gt;1;ddd;444&lt;/P&gt;&lt;P&gt;2;eee;555&lt;/P&gt;&lt;P&gt;2;fff;666&lt;/P&gt;&lt;P&gt;1;iii;999&lt;/P&gt;&lt;P&gt;1;jjj;000&lt;/P&gt;&lt;P&gt;2;kkk;123&lt;/P&gt;&lt;P&gt;2;lll;456&lt;/P&gt;&lt;P&gt;1;ooo;564&lt;/P&gt;&lt;P&gt;1;ppp;369&lt;/P&gt;&lt;P&gt;2;qqq;258&lt;/P&gt;&lt;P&gt;2;rrr;147&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;I am trying to define an incremented identifier which starts at 1 for example if level is equal to 1 and&lt;/P&gt;&lt;P&gt;to assign this identifier to all the lines which are of level 1 and to increment this identifier to +1&lt;/P&gt;&lt;P&gt;for the following level to 1. The result I am trying to get is the following:&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;LEVEL;NAME;VALUE;ID&lt;/P&gt;&lt;P&gt;0;aaa;111;&lt;/P&gt;&lt;P&gt;0;bbb;222;&lt;/P&gt;&lt;P&gt;1;ccc;333;1&lt;/P&gt;&lt;P&gt;1;ddd;444;1&lt;/P&gt;&lt;P&gt;2;eee;555;&lt;/P&gt;&lt;P&gt;2;fff;666;&lt;/P&gt;&lt;P&gt;1;iii;999;2&lt;/P&gt;&lt;P&gt;1;jjj;000;2&lt;/P&gt;&lt;P&gt;2;kkk;123;&lt;/P&gt;&lt;P&gt;2;lll;456;&lt;/P&gt;&lt;P&gt;1;ooo;564;3&lt;/P&gt;&lt;P&gt;1;ppp;369;3&lt;/P&gt;&lt;P&gt;2;qqq;258;&lt;/P&gt;&lt;P&gt;2;rrr;147;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm really stuck on this issue and I'm ashamed, and that's why I hand it over to the community.&lt;/P&gt;&lt;P&gt;Any help or advice will be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanking you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:31:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Increment-a-value-to-a-group-based-on-a-criterion/m-p/2374884#M137406</guid>
      <dc:creator>Mr_B</dc:creator>
      <dc:date>2024-11-15T23:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Increment a value to a group based on a criterion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Increment-a-value-to-a-group-based-on-a-criterion/m-p/2374885#M137407</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a few days of hindsight, I found the solution and I post the solution for those to whom it would be useful.&lt;/P&gt;&lt;P&gt;In fact, it suffices to break down the actions.&lt;/P&gt;&lt;P&gt;First, I filter my level 1 lines to keep only one while keeping the information and thus set up a counter on these lines.&lt;/P&gt;&lt;P&gt;This allows me to subsequently cross-reference the data between the initial data of my file and the identifiers of each level 1 according to each line concerned in my file. This allows me to obtain the desired result.&lt;/P&gt;&lt;P&gt;Sometimes taking a step back from a problem can help ...&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 13:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Increment-a-value-to-a-group-based-on-a-criterion/m-p/2374885#M137407</guid>
      <dc:creator>Mr_B</dc:creator>
      <dc:date>2021-11-15T13:36:44Z</dc:date>
    </item>
  </channel>
</rss>

