<?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 do Computation after taggregate row in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222562#M16115</link>
    <description>&lt;P&gt;Can u pls elaborate on the same&lt;/P&gt;</description>
    <pubDate>Mon, 28 Oct 2019 15:28:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-28T15:28:50Z</dc:date>
    <item>
      <title>How to do Computation after taggregate row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222560#M16113</link>
      <description>&lt;P&gt;Based on group by and sum function from tAggregate row i got below output. Now i need to get a single amount&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Settled-Refund . Which component should be used&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;|=----------+--------=|&lt;BR /&gt;|TOTAL_PRICE|INDICATOR|&lt;BR /&gt;|=----------+--------=|&lt;BR /&gt;|4352.99 |SETTLED |&lt;BR /&gt;|650.46 |REFUND |'-----------+---------'&lt;/P&gt; 
&lt;P&gt;[statistics] disconnected&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&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="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7sk.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132370iE21D1743467DFFCA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7sk.png" alt="0683p000009M7sk.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 15:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222560#M16113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-28T15:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Computation after taggregate row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222561#M16114</link>
      <description>it's easy to make calculation on one row.&lt;BR /&gt;so use tDenormalize ro have:&lt;BR /&gt;SETTLED | REFUND&lt;BR /&gt;4352.99 | 650.46&lt;BR /&gt;&lt;BR /&gt;then use tmap.&lt;BR /&gt;good luck&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Oct 2019 15:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222561#M16114</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-10-28T15:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Computation after taggregate row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222562#M16115</link>
      <description>&lt;P&gt;Can u pls elaborate on the same&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 15:28:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222562#M16115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-28T15:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Computation after taggregate row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222563#M16116</link>
      <description>&lt;P&gt;I assume you mean that you want to return the value of Settled-Refund on its own? If so, this can be done quite easily. I assume that Settled is always returned first? If so, you can extrapolate from this basic example.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In this example I have the following flow. The tFixedFlowInput component returns one column with two rows. I am subtracting the second value from the first value. The subtraction takes place in the tMap.&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="Screenshot 2019-10-28 at 15.26.18.png" style="width: 962px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7wb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154197i5E95EE398DFE5957/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7wb.png" alt="0683p000009M7wb.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Here is the tMap.....&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-10-28 at 15.26.29.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7wg.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132006i7A630240EC6D019B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7wg.png" alt="0683p000009M7wg.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Here I am making use of tMap variables. tMap variables have some very useful features. They are processed in order (top down) and they hold their values between rows. So, I have set up two Double values (the Nullable flag is set to true....this is important). The Record1 value is sent to the SecondValue variable and the SecondValue variable sets the value of the FirstValue variable. As these are set in order (top down), the first row will have the FirstValue variable set to NULL and the SecondValue variable set to the value of the first row. The second row will have the FirstValue variable set to the first row value and the SecondValue variable will be set to the second row value. The output filter on the Out1 output means that the first row value is not returned because we know that the FirstValue variable will always be NULL. Therefore we only return the second row and this will return the result of ....&lt;/P&gt; 
&lt;PRE&gt;Var.FirstValue-Var.SecondValue&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Oct 2019 15:33:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222563#M16116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-28T15:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Computation after taggregate row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222564#M16117</link>
      <description>&lt;P&gt;Its working thanks .But&amp;nbsp; a supercomplicated way to do a simple stuff !&amp;nbsp;&lt;BR /&gt;Also this may not work if i need to aggregate&amp;nbsp; more rows with different Types .&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Isnt there a simpler&amp;nbsp; way to do it in Talend, I was looking for something like below :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sum (row [INDICATOR='SETTLED'] /TOTAL_PRICE -row [INDICATOR='REFUND'] /TOTAL_PRICE)&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can u suggest something else as well&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 15:49:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222564#M16117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-28T15:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Computation after taggregate row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222565#M16118</link>
      <description>using tDenormalize after taggregate is working fine even if you have multiple data to sum or to remove.
&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Oct 2019 16:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222565#M16118</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-10-28T16:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Computation after taggregate row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222566#M16119</link>
      <description>what a dirty way…</description>
      <pubDate>Mon, 28 Oct 2019 16:13:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222566#M16119</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-10-28T16:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Computation after taggregate row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222567#M16120</link>
      <description>&lt;P&gt;Sorry &lt;A href="https://community.qlik.com/s/profile/0053p000007LKpMAAW"&gt;@fdenis&lt;/A&gt;, I wrote that before I saw your answer. I like to show off the functionality of the tMap, as it can massively help people with other computational problems. This method is ideal for comparing rows and only requires 1 component. However, your method was written first, so I will award the solution to you.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 16:24:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222567#M16120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-28T16:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Computation after taggregate row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222568#M16121</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LOuMAAW"&gt;@dkdarshu45&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;Its working thanks .But&amp;nbsp; a supercomplicated way to do a simple stuff !&amp;nbsp;&lt;BR /&gt;Also this may not work if i need to aggregate&amp;nbsp; more rows with different Types .&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Isnt there a simpler&amp;nbsp; way to do it in Talend, I was looking for something like below :&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;sum (row [INDICATOR='SETTLED'] /TOTAL_PRICE -row [INDICATOR='REFUND'] /TOTAL_PRICE)&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;Can u suggest something else as well&amp;nbsp;&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKpMAAW"&gt;@fdenis&lt;/A&gt;&amp;nbsp;showed a simpler way of doing this.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Given your example equation, you could approach this in many ways. However, you told us that you had two rows where the first row needed the second row subtracted from it. The method I gave is the most efficient way (a single component) I could think of at the time for achieving that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 16:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222568#M16121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-28T16:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Computation after taggregate row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222569#M16122</link>
      <description>&lt;P&gt;I am not able to do using tdenormalize. Can u post snapshot of the same&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 12:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222569#M16122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-01T12:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Computation after taggregate row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222570#M16123</link>
      <description>&lt;A href="https://help.talend.com/reader/wDRBNUuxk629sNcI0dNYaA/K4daeny9X_pgAhOiBR~Kug" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/wDRBNUuxk629sNcI0dNYaA/K4daeny9X_pgAhOiBR~Kug&lt;/A&gt;</description>
      <pubDate>Mon, 04 Nov 2019 09:02:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222570#M16123</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-11-04T09:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to do Computation after taggregate row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222571#M16124</link>
      <description>&lt;P&gt;to get help select component into your job then press F1.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 09:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-do-Computation-after-taggregate-row/m-p/2222571#M16124</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-11-04T09:03:05Z</dc:date>
    </item>
  </channel>
</rss>

