<?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: unique count of rows in a file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223028#M16400</link>
    <description>&lt;P&gt;It is a compilation error, maybe you need to synchronize the schema after you modify the job, check the schema and basic settings of tFileOutputDelimited. &lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;BTW, please insert images into your post body instead of attaching them!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Apr 2020 08:39:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-04-24T08:39:33Z</dc:date>
    <item>
      <title>unique count of rows in a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223023#M16395</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a text file which has 2 key elements, depending upon on the key elements i have to fetch the unique row count and store it in a file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know how this can be acheived.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 17:08:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223023#M16395</guid>
      <dc:creator>Aish123</dc:creator>
      <dc:date>2020-04-23T17:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: unique count of rows in a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223024#M16396</link>
      <description>&lt;P&gt;use tUniqRow to get the count.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 17:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223024#M16396</guid>
      <dc:creator>billimmer</dc:creator>
      <dc:date>2020-04-23T17:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: unique count of rows in a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223025#M16397</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I tried with the tuniqrow component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tfileinputpostional--&amp;gt;tuniqrow--&amp;gt;tlogrow&lt;/P&gt;&lt;P&gt;In this, i am getting the unique rows data on the console..i need the unique count and want to store the same in an file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried with tfileinputpositional-&amp;gt;tuniqrow-&amp;gt;tflowmeter-&amp;gt;tflowmetercatcher--&amp;gt;tfileoutputdelimited.&lt;/P&gt;&lt;P&gt;In this, there are 0 rows processed at the tfileoutputdelimited and there is no data present in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 07:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223025#M16397</guid>
      <dc:creator>Aish123</dc:creator>
      <dc:date>2020-04-24T07:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: unique count of rows in a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223026#M16398</link>
      <description>&lt;P&gt;You don't use tFlowMeterCatcher component correctly. &lt;BR /&gt;There is a pre-defined global variable on tFileOutputDelimited that counts the total number of rows are output into file, you can use this variable on other subjob.&lt;BR /&gt;((Integer)globalMap.get("tFileOutputDelimited_1_NB_LINE"))&lt;BR /&gt;eg:&lt;BR /&gt;tfileinputpositional-&amp;gt;tuniqrow--&amp;gt;tfileoutputdelimited.&lt;BR /&gt;|onsubjobok&lt;BR /&gt;tJava&lt;BR /&gt;&lt;BR /&gt;on tJava:&lt;BR /&gt;System.out.println("the number of unique rows is "+(Integer)globalMap.get("tFileOutputDelimited_1_NB_LINE"))&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shong&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 07:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223026#M16398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-24T07:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: unique count of rows in a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223027#M16399</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the approach suggested by you, but it is throwing an error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find the attached screen print for the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LyTD"&gt;error.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LyTN"&gt;job1.PNG&lt;/A&gt;</description>
      <pubDate>Fri, 24 Apr 2020 08:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223027#M16399</guid>
      <dc:creator>Aish123</dc:creator>
      <dc:date>2020-04-24T08:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: unique count of rows in a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223028#M16400</link>
      <description>&lt;P&gt;It is a compilation error, maybe you need to synchronize the schema after you modify the job, check the schema and basic settings of tFileOutputDelimited. &lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;BTW, please insert images into your post body instead of attaching them!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 08:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223028#M16400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-24T08:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: unique count of rows in a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223029#M16401</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am getting an unique data as an output in the delimited file instead i want to store the count of unique rows in the file.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to store the count "2" as seen on the console in the file.&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="job.PNG" style="width: 885px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA8q.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145624iD7720973AF037B3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA8q.png" alt="0683p000009MA8q.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 09:25:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223029#M16401</guid>
      <dc:creator>Aish123</dc:creator>
      <dc:date>2020-04-24T09:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: unique count of rows in a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223030#M16402</link>
      <description>OK, just use a tJavaFlex instead of tFileOutputDelilimited, define a counter on tJavaFlex, eg:&lt;BR /&gt;begin part:&lt;BR /&gt;int counter=0;&lt;BR /&gt;main part:&lt;BR /&gt;counter++;&lt;BR /&gt;end part:&lt;BR /&gt;globalMap.put("counter",counter);&lt;BR /&gt;&lt;BR /&gt;In next subjob, get the value of this global variable and output it to a file. &lt;BR /&gt;|onsubjobok&lt;BR /&gt;tFixedFlowInput--main--tFileOutputDelimited&lt;BR /&gt;&lt;BR /&gt;on tFixedFlowInput, add one column with int type,  and set its value as:&lt;BR /&gt;(Integer)globalMap.get("counter")&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Apr 2020 09:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223030#M16402</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-24T09:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: unique count of rows in a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223031#M16403</link>
      <description>&lt;P&gt;You don't need all that.&amp;nbsp; The tUniqRow already returns:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="emphasis"&gt;&lt;STRONG&gt;NB_UNIQUES&lt;/STRONG&gt;&lt;/SPAN&gt;: the number of unique rows. This is an After variable and it returns an integer.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="emphasis"&gt;&lt;STRONG&gt;NB_DUPLICATES&lt;/STRONG&gt;&lt;/SPAN&gt;: the number of duplicate rows. This is an After variable and it returns an integer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can write out the value of&amp;nbsp;&lt;SPAN class="emphasis"&gt;&lt;STRONG&gt;NB_UNIQUES&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;to a file or DB table with tFixedFlowInput.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 14:17:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223031#M16403</guid>
      <dc:creator>billimmer</dc:creator>
      <dc:date>2020-04-24T14:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: unique count of rows in a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223032#M16404</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks it worked successfully.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 14:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unique-count-of-rows-in-a-file/m-p/2223032#M16404</guid>
      <dc:creator>Aish123</dc:creator>
      <dc:date>2020-04-24T14:21:05Z</dc:date>
    </item>
  </channel>
</rss>

