<?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: Sum based on row value in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Sum-based-on-row-value/m-p/2284347#M58053</link>
    <description>&lt;P&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;&lt;/P&gt; 
&lt;P&gt;need to sum the runs column for 1st 6 'Y's (need to include no ball, wide which comes within 1st 6 valid balls) then for the 2nd 6&amp;nbsp; 'Y's and so on&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2019 08:35:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-08T08:35:15Z</dc:date>
    <item>
      <title>Sum based on row value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sum-based-on-row-value/m-p/2284343#M58049</link>
      <description>&lt;P&gt;My input is&amp;nbsp;&lt;/P&gt;&lt;P&gt;Balls,Valid Ball,Runs&lt;BR /&gt;1,Y,0&lt;BR /&gt;2,Wide Ball,1&lt;BR /&gt;3,No Ball,4&lt;BR /&gt;4,Y,2&lt;BR /&gt;5,Y,6&lt;BR /&gt;6,Y,0&lt;BR /&gt;7,Wide Ball,1&lt;BR /&gt;8,Wide Ball,1&lt;BR /&gt;9,Y,4&lt;BR /&gt;10,Y,4&lt;BR /&gt;11,Y,6&lt;BR /&gt;12,Y,0&lt;BR /&gt;13,Y,0&lt;BR /&gt;14,No Ball,1&lt;BR /&gt;15,No Ball,1&lt;BR /&gt;16,Wide Ball,4&lt;BR /&gt;17,Wide Ball,3&lt;BR /&gt;18,Y,6&lt;BR /&gt;19,Y,6&lt;BR /&gt;20,Y,6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need Output as&lt;/P&gt;&lt;P&gt;over,runs&lt;/P&gt;&lt;P&gt;1,23&lt;/P&gt;&lt;P&gt;2,33&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sum-based-on-row-value/m-p/2284343#M58049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on row value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sum-based-on-row-value/m-p/2284344#M58050</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Do we have to guess the logic for going from the input to the output?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 07:56:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sum-based-on-row-value/m-p/2284344#M58050</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-08T07:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on row value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sum-based-on-row-value/m-p/2284345#M58051</link>
      <description>&lt;P&gt;oops..forgot to mention that&lt;/P&gt;&lt;P&gt;Over is of 6 Balls, Count 6 Valid Balls for 1 Over.'Y' means its a valid ball&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 08:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sum-based-on-row-value/m-p/2284345#M58051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-08T08:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on row value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sum-based-on-row-value/m-p/2284346#M58052</link>
      <description>Sorry, I don't play cricket, just play Talend!
&lt;BR /&gt;Can give more details?</description>
      <pubDate>Tue, 08 Oct 2019 08:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sum-based-on-row-value/m-p/2284346#M58052</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-08T08:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on row value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sum-based-on-row-value/m-p/2284347#M58053</link>
      <description>&lt;P&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;&lt;/P&gt; 
&lt;P&gt;need to sum the runs column for 1st 6 'Y's (need to include no ball, wide which comes within 1st 6 valid balls) then for the 2nd 6&amp;nbsp; 'Y's and so on&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 08:35:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sum-based-on-row-value/m-p/2284347#M58053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-08T08:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on row value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sum-based-on-row-value/m-p/2284348#M58054</link>
      <description>&lt;P&gt;Here is my proposal:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job.png" style="width: 487px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M88e.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130657i51BED05513D27747/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M88e.png" alt="0683p000009M88e.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;You need some logic with tMap local variables:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tmap.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M88j.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144771i25697188FD94DD16/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M88j.png" alt="0683p000009M88j.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Sum are computed with tAggregateRow component with the following settings:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="taggregate.png" style="width: 785px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M88o.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128408i0077D16E8B750BD7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M88o.png" alt="0683p000009M88o.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;And the result is:&lt;/P&gt; 
&lt;PRE&gt;Starting job test at 11:00 08/10/2019.

[statistics] connecting to socket on port 4014
[statistics] connected
.----+----.
|tLogRow_13|
|=---+---=|
|over|runs|
|=---+---=|
|1   |23  |
|2   |33  |
'----+----'

[statistics] disconnected
Job test ended at 11:00 08/10/2019. [exit code=0]&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Oct 2019 10:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sum-based-on-row-value/m-p/2284348#M58054</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-08T10:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on row value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sum-based-on-row-value/m-p/2284349#M58055</link>
      <description>&lt;P&gt;can you please help me with&amp;nbsp; the logic used in the tmap.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 10:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sum-based-on-row-value/m-p/2284349#M58055</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-08T10:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on row value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sum-based-on-row-value/m-p/2284350#M58056</link>
      <description>No time for detailed explications.
&lt;BR /&gt;You have to know local variables are evaluated in the order they are defined.
&lt;BR /&gt;Start by copying to your job for test then try to decompose manually step by step, it's the better approach to learn (maybe using paper and pen).
&lt;BR /&gt;
&lt;BR /&gt;Also don't forget to mark your case as solved (Kudos also appreciated).</description>
      <pubDate>Tue, 08 Oct 2019 11:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sum-based-on-row-value/m-p/2284350#M58056</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-08T11:05:16Z</dc:date>
    </item>
  </channel>
</rss>

