Skip to main content
Question

How to assign a count of duplicate attribute values to a new attribute

  • June 17, 2016
  • 1 reply
  • 343 views

gmbutler2
Contributor
Forum|alt.badge.img+10

I am trying to use a transformer that will look at a single attribute and return with a count value equal to the number of instances that the defined attribute has identical values being used within it. I tried the numeric count attribute created by a statistics counter, but that was not correct. Can anyone tell me what transformer can do this if any?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

david_r
Celebrity
  • June 17, 2016

The StatisticsCalculator is a good choice. Set a group by on the attribute with identical values, then look at the Count attribute output in the Summary.

You will then get one feature per unique group by-value, including a count of how many times it occurred.