Skip to main content
How do I identify the belonging to a duplicate value?

 

I use the DuplicateRemover, which outputs the following result:

 

 

For Example:

 

1 -> Unique Port

 

2 -> Unique Port

 

2 -> Duplicate port

 

3 -> Unique Port

 

 

With this Transformer I have now identified the values ??that occur more than once (The second"2").

 

 I want to identify the values(The first "2") which end up?? in the Unique Port, and are identical with the values??, which end up in duplicate port.

 

 

My english is not very good. Hope I have made ??myself clear enough. 
It is sufficient to identify both values ??at once (and maybe a third,...)
Hi,

 

 

Why dont you do a count per attribute value?

 

That will tell you that the value 2 has two elements.

 

 

Itay
If you want to return all features that have a value that is not unique (not just the second instance) you can use a matcher.
Thank you. your solution works. You should mention the StatisticCalculator. That would have made it easier for me;)

 


Hi,

 

 

As in many things in FME there are several ways to acomplish something, the StatisticsCalculator is the obvious choice, but this can also be done with the Counter, Aggregator and ExpressionEvaluator.

 

Itay

Reply