<?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 Aggregate rows - getting null in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287122#M60744</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What I'm trying to do is after aggregating the rows, there must be a two results - one containing result of aggregation and one containing unaggregated row.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;1. Problem&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;When I used tAggregateRow component, it has given me the wrong result as in below screenshots:&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="jobcleanpo.PNG" style="width: 724px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lvkg.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153916iA2527381E1E1717E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lvkg.png" alt="0683p000009Lvkg.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dupsss.PNG" style="width: 375px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvNf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149158i24E890C13B38A668/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvNf.png" alt="0683p000009LvNf.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Why I'm getting null values in a resulting columns - PODate &amp;amp; VendorNumber ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks !&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2017 10:49:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-21T10:49:17Z</dc:date>
    <item>
      <title>Aggregate rows - getting null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287122#M60744</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What I'm trying to do is after aggregating the rows, there must be a two results - one containing result of aggregation and one containing unaggregated row.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;1. Problem&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;When I used tAggregateRow component, it has given me the wrong result as in below screenshots:&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="jobcleanpo.PNG" style="width: 724px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lvkg.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153916iA2527381E1E1717E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lvkg.png" alt="0683p000009Lvkg.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dupsss.PNG" style="width: 375px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvNf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149158i24E890C13B38A668/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvNf.png" alt="0683p000009LvNf.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Why I'm getting null values in a resulting columns - PODate &amp;amp; VendorNumber ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 10:49:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287122#M60744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-21T10:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate rows - getting null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287123#M60745</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The null values are caused by not including the fields in the group by. On the other hand, when you do include VendorNumber in the aggregation, it will not do the aggregation you wish. What exactly do you expect as result for 11676 ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;To distinguish unaggregated records, you could consider adding an extra output field and add an count. When the count==1 then it is not aggregated.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 11:00:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287123#M60745</guid>
      <dc:creator>Aukema</dc:creator>
      <dc:date>2017-06-21T11:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate rows - getting null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287124#M60746</link>
      <description>&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/s/profile/0053p000007LLpUAAW"&gt;@saukema&lt;/A&gt; for your quick reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"The null values are caused by not including the fields in the group by" - How to do this ? I've tried but not getting desired result.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For&amp;nbsp;&lt;SPAN&gt;11676 I expect the result to be :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;11676 &amp;nbsp;| &amp;nbsp;28-07-2016 &amp;nbsp;| &amp;nbsp;BLUE3 &amp;nbsp;| &amp;nbsp;30-09-2016&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So there should no null.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To distinguish unaggregated records, I used tMap and its working fine. The only problem is of null values.&lt;/SPAN&gt;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 11:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287124#M60746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-21T11:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate rows - getting null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287125#M60747</link>
      <description>&lt;P&gt;So you want to group by PONumber, return the Max LastUpdated date and return the other column values that correspond to the LastUpdated date (Max) returned? This is not so easy with this component on its own. But you can engineer a solution.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1) Order your data by PONumber and LastUpdated date using a tSortRow. Ensure that your order by PONumber first and LastUpdated second.&lt;/P&gt; 
&lt;P&gt;2) In your tAggregate component, group by the PONumber (as in your example) but select the LAST function for ALL output columns (assuming that your ordering is set to order by date ascending in your tSortRow component.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This will mean that your max date will be returned with the values that correspond to that.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 11:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287125#M60747</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-21T11:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate rows - getting null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287126#M60748</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;&amp;nbsp;for let me know tAggregateRow component is not sufficient for my requirement.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The solution suggested by you is good but I can't apply in my case as raw data has no any fix data type of any column, so sort would be not a good idea. Well, I've achieved the result using hashing and then inner join in following way:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1. Changed schema of tAggregateRow component - removed 2 columns for which I was getting null values&lt;/P&gt; 
&lt;P&gt;2. Used inner join to check for match and unmatched&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="Solved.PNG" style="width: 702px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lvmq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150153i9FA2D13FA05C11D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lvmq.png" alt="0683p000009Lvmq.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Result:&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="solvedres.PNG" style="width: 375px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lvmv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132837i1ADAE244320543FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lvmv.png" alt="0683p000009Lvmv.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I don't know if its an efficient solution, but its working perfectly.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks &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;</description>
      <pubDate>Wed, 21 Jun 2017 12:23:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287126#M60748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-21T12:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate rows - getting null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287127#M60749</link>
      <description>&lt;P&gt;I'm confused, if you cannot sort because of a lack of fixed data types, how were you able to use the Max function successfully? The Max functionality and Sort functionality are practically the same&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 12:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287127#M60749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-21T12:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate rows - getting null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287128#M60750</link>
      <description>Data type is not fixed for PONumber column that can be alphanumeric, but in case of LastUpdated column its fixed as type date. (If not, I may need to transform/format it to date before applying any aggregation function.)</description>
      <pubDate>Wed, 21 Jun 2017 14:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287128#M60750</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-21T14:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate rows - getting null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287129#M60751</link>
      <description>&lt;P&gt;That would suit using the way I suggested, which would be a little bit more efficient than your workaround. But if it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 15:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287129#M60751</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-21T15:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate rows - getting null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287130#M60752</link>
      <description>I appreciate your help, and will definitely give a try to your suggestion. Many thanks for your time 
&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt; 
&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, 21 Jun 2017 15:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287130#M60752</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-21T15:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate rows - getting null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287131#M60753</link>
      <description>&lt;P&gt;I solved it in another way which might be easier.&lt;/P&gt; 
&lt;P&gt;You could add the columns you need to the operation list in the component properties and use one of the appropriate functions like "first" wich will return only the first row value, or "list" if you want to groups the values in a comma separated string.&lt;/P&gt; 
&lt;P&gt;Check this screenshot:&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="local-image-2019-07-31_3_12.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6Tn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148622i64709E6561FC0A35/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6Tn.png" alt="0683p000009M6Tn.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Regards!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 14:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregate-rows-getting-null/m-p/2287131#M60753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-31T14:13:50Z</dc:date>
    </item>
  </channel>
</rss>

