<?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 Aggregation on one attribut and keeping date in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Aggregation-on-one-attribut-and-keeping-date/m-p/2241818#M28855</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I already read and learn a lot because of you (the community) and that's my first post.&lt;/P&gt; 
&lt;P&gt;I'm facing a wall implementing a workflow, here's my problem.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;U&gt;First, let's have a look on data and what I've (sorry I anonymised data):&lt;/U&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 717px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA33.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144670iA45B302E6CB1D7B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA33.png" alt="0683p000009MA33.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Col1,2,3 and DATE_START are grouped with a tAggregateRow, I've added "type" column to help on the comprehension of the need but it'll disappear at the end.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The problem is, I would like to keep that format (without "type") but get sum on the C1/C2/C3 column, to have this kind of results :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 751px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9y4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134262i0F2215097A2CB974/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9y4.png" alt="0683p000009M9y4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I determine the value on C1/C2/C3 column within a tMap, here's an example :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;!Relational.ISNULL(row10.TYPE)&amp;amp;&amp;amp; row10.TYPE=="C"?1:0&amp;nbsp; &amp;nbsp; and then set C1 column value with the result&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What can be imagine to perform the need of that workflow ? I tried a lot of things but now I looking for new ideas &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks by advance,&lt;/P&gt; 
&lt;P&gt;Kind regards,&lt;/P&gt; 
&lt;P&gt;Slop&lt;/P&gt;</description>
    <pubDate>Tue, 10 Mar 2020 16:04:12 GMT</pubDate>
    <dc:creator>Slope</dc:creator>
    <dc:date>2020-03-10T16:04:12Z</dc:date>
    <item>
      <title>Aggregation on one attribut and keeping date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregation-on-one-attribut-and-keeping-date/m-p/2241818#M28855</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I already read and learn a lot because of you (the community) and that's my first post.&lt;/P&gt; 
&lt;P&gt;I'm facing a wall implementing a workflow, here's my problem.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;U&gt;First, let's have a look on data and what I've (sorry I anonymised data):&lt;/U&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 717px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA33.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144670iA45B302E6CB1D7B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA33.png" alt="0683p000009MA33.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Col1,2,3 and DATE_START are grouped with a tAggregateRow, I've added "type" column to help on the comprehension of the need but it'll disappear at the end.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The problem is, I would like to keep that format (without "type") but get sum on the C1/C2/C3 column, to have this kind of results :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 751px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9y4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134262i0F2215097A2CB974/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9y4.png" alt="0683p000009M9y4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I determine the value on C1/C2/C3 column within a tMap, here's an example :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;!Relational.ISNULL(row10.TYPE)&amp;amp;&amp;amp; row10.TYPE=="C"?1:0&amp;nbsp; &amp;nbsp; and then set C1 column value with the result&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What can be imagine to perform the need of that workflow ? I tried a lot of things but now I looking for new ideas &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks by advance,&lt;/P&gt; 
&lt;P&gt;Kind regards,&lt;/P&gt; 
&lt;P&gt;Slop&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 16:04:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregation-on-one-attribut-and-keeping-date/m-p/2241818#M28855</guid>
      <dc:creator>Slope</dc:creator>
      <dc:date>2020-03-10T16:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on one attribut and keeping date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregation-on-one-attribut-and-keeping-date/m-p/2241819#M28856</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You want to perform a counter to your C1/2/3 columns&lt;/P&gt;&lt;P&gt;I suggest you to declare 3 global variables in start of job&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;globalMap.put("C1Count",0);
globalMap.put("C2Count",0);
globalMap.put("C3Count",0);&lt;/PRE&gt;&lt;P&gt;In your tmap you will increment your variables and write them in your C1 2 3 columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create 3 variables in tmap :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# first variable increments C1&lt;BR /&gt;row1.TYPE.equals("C1Count")?globalMap.put("C1Count",(Integer)globalMap.get("C1Count")+1):null&lt;BR /&gt;&lt;SPAN&gt;# second variable increments C2&lt;/SPAN&gt;
row1.TYPE.equals("C2Count")?globalMap.put("C2Count",(Integer)globalMap.get("C2Count")+1):null&lt;BR /&gt;&lt;SPAN&gt;# third variable increments C3&lt;/SPAN&gt;
row1.TYPE.equals("C3Count")?globalMap.put("C3Count",(Integer)globalMap.get("C3Count")+1):null&lt;/PRE&gt;&lt;P&gt;then write in your tmap output fields C1 C2 C3 respectivly :&lt;/P&gt;&lt;PRE&gt;(Integer)globalMap.get("C1Count")&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Integer)globalMap.get("C2Count")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Integer)globalMap.get("C3Count")&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 16:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregation-on-one-attribut-and-keeping-date/m-p/2241819#M28856</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-11T16:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on one attribut and keeping date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregation-on-one-attribut-and-keeping-date/m-p/2241820#M28857</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for that first answer, I'm now able to increment value as intended but I've a new issue.&lt;/P&gt;&lt;P&gt;I need to increment (c1,c2,c3), but the increment have to be linked to col 1/2/3 (which are grouped values).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my increment start for "AAA aaaa" values, and then when I switch to "BBB aaaa" values, need to be reset to start a new sequence of increment&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 16:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregation-on-one-attribut-and-keeping-date/m-p/2241820#M28857</guid>
      <dc:creator>Slope</dc:creator>
      <dc:date>2020-03-11T16:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on one attribut and keeping date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregation-on-one-attribut-and-keeping-date/m-p/2241821#M28858</link>
      <description>&lt;P&gt;I will need a sample of Input and Output Data in order to see what exactly are the transformations desired&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 16:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregation-on-one-attribut-and-keeping-date/m-p/2241821#M28858</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-11T16:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on one attribut and keeping date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregation-on-one-attribut-and-keeping-date/m-p/2241822#M28859</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't solved my problem but due to covid …. I can't work anymore so I'll keep you informed as soon as the access to my workstation is possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 07:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregation-on-one-attribut-and-keeping-date/m-p/2241822#M28859</guid>
      <dc:creator>Slope</dc:creator>
      <dc:date>2020-03-16T07:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on one attribut and keeping date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregation-on-one-attribut-and-keeping-date/m-p/2241823#M28860</link>
      <description>&lt;P&gt;Hello &lt;A href="https://community.qlik.com/s/profile/0053p000007LOIrAAO"&gt;@tehLurdUfEngmer&lt;/A&gt;&amp;nbsp;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm back and I was able to move forward, but still turning around a problem, here's the last one.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The example (input) :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 394px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9ZI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132704i61E4F08EFC851D92/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9ZI.png" alt="0683p000009M9ZI.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here's what I would like (output) :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 384px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9k6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139341i7FFAE7C173159310/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9k6.png" alt="0683p000009M9k6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So to resume, now I would like to :&lt;/P&gt; 
&lt;P&gt;- keep on the column ---&amp;gt; "2ND", the MAX from values on column "FIRS"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Really simple to do it on SQL, even in access ... but not on talend.&lt;/P&gt; 
&lt;P&gt;Keep the aggregation on "NAME,&amp;nbsp;NAME2,&amp;nbsp;Date_Month,&amp;nbsp;DATE_START" and having a MAX on "2ND".&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 15:56:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregation-on-one-attribut-and-keeping-date/m-p/2241823#M28860</guid>
      <dc:creator>Slope</dc:creator>
      <dc:date>2020-03-17T15:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on one attribut and keeping date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregation-on-one-attribut-and-keeping-date/m-p/2241824#M28861</link>
      <description>Hello there, just to let you know I find a solution to solve that problem. 
&lt;BR /&gt;I mixed "last" and "this" value on tMap with a globalMap variable on a tjavarow. 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks for your help 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 22 Apr 2020 16:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregation-on-one-attribut-and-keeping-date/m-p/2241824#M28861</guid>
      <dc:creator>Slope</dc:creator>
      <dc:date>2020-04-22T16:22:00Z</dc:date>
    </item>
  </channel>
</rss>

