<?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: Collating row counts in multiple subjobs. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Collating-row-counts-in-multiple-subjobs/m-p/2317477#M87918</link>
    <description>&lt;P&gt;An image of my solution, with a small refinement of using a tMap to filter on the sources, instead of a tReplicate and multiple tFilters.&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="RowCountJob_Solution.JPG" style="width: 664px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lt6u.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143311i4F6397E46C19E7BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lt6u.jpg" alt="0683p000009Lt6u.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Mar 2018 10:54:20 GMT</pubDate>
    <dc:creator>miteshkhatri80</dc:creator>
    <dc:date>2018-03-16T10:54:20Z</dc:date>
    <item>
      <title>Collating row counts in multiple subjobs.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Collating-row-counts-in-multiple-subjobs/m-p/2317475#M87916</link>
      <description>&lt;P&gt;I have a job similar to the one below, with two inputs and a filter on each input. I want to output the number of rows from the filters, into a file output that looks something like:&lt;/P&gt; 
&lt;P&gt;row2|0 rows&lt;/P&gt; 
&lt;P&gt;row3|100 rows&lt;/P&gt; 
&lt;P&gt;row5|5 rows&lt;/P&gt; 
&lt;P&gt;row6|5 rows&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The file layout doesn't matter too much, I can tweak that as necessary. I just need the values.&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="RowCountJob.JPG" style="width: 540px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lt6s.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156142i002BAF5AF36C99AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lt6s.jpg" alt="0683p000009Lt6s.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If I have a separate tFlowMeterCatcher that outputs to a CSV file, only the second set of values is output. I believe the first set IS output, but is then overwritten regardless of the "append to file" setting. In any case, I do not want to append to file, because I want the stats to be refreshed entirely each time I run the job.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have also tried to output the results via the Stats&amp;amp;Logs option in the Job tab, but this also only outputs the results from the latest subjob, having overwritten the results from the initial one.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How can I make all four stats appear in the same file? Is it possible to have more than one tFlowMeterCatcher, and specify which tFlowMeter(s) it refers to?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Collating-row-counts-in-multiple-subjobs/m-p/2317475#M87916</guid>
      <dc:creator>miteshkhatri80</dc:creator>
      <dc:date>2024-11-16T08:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Collating row counts in multiple subjobs.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Collating-row-counts-in-multiple-subjobs/m-p/2317476#M87917</link>
      <description>&lt;P&gt;I have managed to resolve it, but I am surprised at the complexity of my solution, and I would love to know if there is a better way.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Since tFlowMeterCatcher overwrites the output from one subjob with the second subjob, my aim was to merge the two jobs into one. The only way I found to do this was to use a tMap immediately after each tRowGenerator, and create a new field which identified the source. This is just a simple string field which can contain "Source1" or "Source2" (or anything more meaningful).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I then used a tUnite to bring the two tMaps together, immediately followed by a tReplicate. Each output from tReplicate connected to a tFilter which filtered on the source field, and from then I used the original tFilter which gives me the values I need, within the same job.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Incidentally, this initially caused an error where the size of the Java code was too large, so I split it up into two sections using a tHashInput and tHashOutput.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;To me this whole thing seems unnecessarily complex, but I could find no other way to resolve it. Does anyone have a better, more efficient solution?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 10:17:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Collating-row-counts-in-multiple-subjobs/m-p/2317476#M87917</guid>
      <dc:creator>miteshkhatri80</dc:creator>
      <dc:date>2018-03-16T10:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Collating row counts in multiple subjobs.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Collating-row-counts-in-multiple-subjobs/m-p/2317477#M87918</link>
      <description>&lt;P&gt;An image of my solution, with a small refinement of using a tMap to filter on the sources, instead of a tReplicate and multiple tFilters.&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="RowCountJob_Solution.JPG" style="width: 664px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lt6u.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143311i4F6397E46C19E7BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lt6u.jpg" alt="0683p000009Lt6u.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 10:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Collating-row-counts-in-multiple-subjobs/m-p/2317477#M87918</guid>
      <dc:creator>miteshkhatri80</dc:creator>
      <dc:date>2018-03-16T10:54:20Z</dc:date>
    </item>
  </channel>
</rss>

