Search code examples
talend

How to count identical rows?


I have rows with years in a csv file as follows:

2009
2010
2010

After processing them, I want an output as follows:

2009:1
2010:2

How do I get the number of identical rows?


Solution

  • Well, I got the answer in taggregaterow. I created duplicate rows and then grouped using one and counted the other.

    I duplicated the year rows into year1 and year2. Then I selected the option in the followingenter image description here