<?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: [resolved] Simple Count in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265936#M45329</link>
    <description>I see, but you just need to execute a query to count the number of rows and judge it to decide the next step. If you want to see how the count functionality of&amp;nbsp;tAggregateRow works, you have to set a group element, if there is no group element avaiable in your case, simply add a new column and set it with a fixed value on tMap before tAggregateRow, and set the new column as group element on tAggregateRow. For example: 
&lt;BR /&gt;tMssqlInput--main--tMap--tAggregateRow--main--tLogRow 
&lt;BR /&gt;on tMap, add a new column in the output table, and set a fixed value to it, eg:1 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
    <pubDate>Fri, 10 Apr 2015 06:51:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-10T06:51:20Z</dc:date>
    <item>
      <title>[resolved] Simple Count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265926#M45319</link>
      <description>Hello&lt;BR /&gt;I just really wanted to make sure I understand the Count functionality within the tAggregateRow component.&lt;BR /&gt;I have a simple job:&lt;BR /&gt;tMSSqlinput ---&amp;gt; tAggregateRow ---&amp;gt; tLogRow&lt;BR /&gt;So, I have a SQL input that returns an ID (String DataType), fed into the aggregate to perform a count and output into the tLogRow.&lt;BR /&gt;I get the following error and empty table. Can anyone tell me why this is please?&lt;BR /&gt;&lt;PRE&gt;Warning:the operation 'count' for the output column 'DriverID' can't be processed because of incompatible input and/or output types&lt;BR /&gt;.--------.&lt;BR /&gt;|tLogRow_1|&lt;BR /&gt;|=------=|&lt;BR /&gt;|DriverID|&lt;BR /&gt;|=------=|&lt;BR /&gt;|null    |&lt;BR /&gt;'--------'&lt;/PRE&gt;&lt;BR /&gt;Thank you in advance.</description>
      <pubDate>Tue, 07 Apr 2015 15:56:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265926#M45319</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-07T15:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Simple Count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265927#M45320</link>
      <description>Hi&amp;nbsp;
&lt;BR /&gt;String type is incompatible for count function, try to convert it to Integer/int type before tAggregateRow component.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 07 Apr 2015 16:06:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265927#M45320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-07T16:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Simple Count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265928#M45321</link>
      <description>Hi shong
&lt;BR /&gt;This did not work, the ID is alpha numeric and therefore not an integer.
&lt;BR /&gt;I guess I am trying to gain an understanding on how to complete this without altering my source code by adding a column with the value 1 in each row. This to me as an easy way out and I feel Talend must be able to perform a simple count on a column containing records that have a string data type.
&lt;BR /&gt;Thank you</description>
      <pubDate>Tue, 07 Apr 2015 16:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265928#M45321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-07T16:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Simple Count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265929#M45322</link>
      <description>Hi&amp;nbsp;
&lt;BR /&gt;Can you please upload a screenshot of settings of tAggregateRow? It will be helpful for us to address the issue.</description>
      <pubDate>Tue, 07 Apr 2015 16:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265929#M45322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-07T16:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Simple Count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265930#M45323</link>
      <description>Hi Shong. 
&lt;BR /&gt;Here it is. 
&lt;BR /&gt;&amp;nbsp; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/271185/blob_20150407-1731.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDHp.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134089iD64159992B9E2A5F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDHp.png" alt="0683p000009MDHp.png" /&gt;&lt;/span&gt; &lt;/A&gt;</description>
      <pubDate>Tue, 07 Apr 2015 16:32:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265930#M45323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-07T16:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Simple Count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265931#M45324</link>
      <description>Hi&lt;BR /&gt;You have to define one group column.</description>
      <pubDate>Wed, 08 Apr 2015 02:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265931#M45324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T02:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Simple Count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265932#M45325</link>
      <description>Hi Shong 
&lt;BR /&gt;I see, but I don't want to group. 
&lt;BR /&gt;I just want an overall total. I.E.&amp;nbsp; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="consolas, monaco, 'bitstream vera sans mono', 'courier new', courier, monospace"&gt;.--------.&lt;BR /&gt;|tLogRow_1|&lt;BR /&gt;|=-------|&lt;BR /&gt;|DriverID|&lt;BR /&gt;|=-------|&lt;BR /&gt;|5755 |&lt;BR /&gt;'--------'&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt;I'm not sure i'm doing it the right way, I know this would be useful knowing the number of rows that are in a table before they are processed. Is there no easy way to achieve this? 
&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 08 Apr 2015 08:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265932#M45325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T08:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Simple Count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265933#M45326</link>
      <description>Hi Ricco,
&lt;BR /&gt;What i understood here,you want know the total row count of table before processing data into flow.
&lt;BR /&gt;Then use "((Integer)globalMap.get("tFileInputDelimited_2_NB_LINE"))" global variable.
&lt;BR /&gt;Thanks
&lt;BR /&gt;kumar</description>
      <pubDate>Wed, 08 Apr 2015 12:28:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265933#M45326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T12:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Simple Count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265934#M45327</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;You can execute a query on txxxInput such as tMysqlInput to counts the number of rows, for example: 
&lt;BR /&gt;"select count(DriverID) from yourTableName" 
&lt;BR /&gt;And define one column with int type on the schema of tMysqlInput. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 08 Apr 2015 21:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265934#M45327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T21:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Simple Count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265935#M45328</link>
      <description>Hi Shong 
&lt;BR /&gt;We are actually moving away from MS and towards Talend which is one of the reasons why I am looking to complete this simple exercise using Talend. The other reason I am trying to complete this solely using talend is to look at some simple jobs that I feel would be straightforward in SSMS/SSIS and how I could transfer these skills in Talend just to gauge my training requirements. 
&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 09 Apr 2015 12:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265935#M45328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-09T12:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Simple Count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265936#M45329</link>
      <description>I see, but you just need to execute a query to count the number of rows and judge it to decide the next step. If you want to see how the count functionality of&amp;nbsp;tAggregateRow works, you have to set a group element, if there is no group element avaiable in your case, simply add a new column and set it with a fixed value on tMap before tAggregateRow, and set the new column as group element on tAggregateRow. For example: 
&lt;BR /&gt;tMssqlInput--main--tMap--tAggregateRow--main--tLogRow 
&lt;BR /&gt;on tMap, add a new column in the output table, and set a fixed value to it, eg:1 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 10 Apr 2015 06:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265936#M45329</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-10T06:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Simple Count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265937#M45330</link>
      <description>Hi Shong. 
&lt;BR /&gt;I think i was misunderstanding how to correctly use the tAggregateRow. It makes sense now, thank you for your help. 
&lt;BR /&gt;Rich</description>
      <pubDate>Tue, 14 Apr 2015 10:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Simple-Count/m-p/2265937#M45330</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T10:34:07Z</dc:date>
    </item>
  </channel>
</rss>

