Skip to main content
Question

distinct values

  • August 5, 2013
  • 2 replies
  • 377 views

Forum|alt.badge.img
Guys,

 

 

I'm lokking for a way to select all distinct values of all the attributes in a table.

 

 

For exemple :

 

 

City / Color  

 

-------------------

 

New-York / red

 

New-York / blue

 

Berlin / yellow

 

Chisinau / red

 

Chisiau / blue

 

 

and the answer would be "New-York Belin Chisinau"  and "red blue yellow"... That could be writen in an excel file or txt...

 

 

It's more or less the same action than an advanced filter in excel... 

 

 

Does anyone know how to do that ?

 

 

thank's in advance

 

 

 

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.

2 replies

fmelizard
Safer
Forum|alt.badge.img+22
  • Safer
  • August 5, 2013
Hi,

 

 

A simple sampler with your attributes in the group by setting will provide your desired result.

takashi
Celebrity
  • August 5, 2013
Hi,

 

 

The Sampler is a good choice as Itay mentioned.

 

Alternatively, the DuplicateRemover also can be used. To get distinct city names for example, specify "City" to the "Key Attributes" parameter and collect output features from UNIQUE port.

 

 

If you need to get finally a concatenated string like "New-York Berlin Chisinau", consider creating a list and concatenating elements of the list after sampling. The ListBuilder or the AttributeAccumulator creates a list, and the ListConcatenator concatenates the elements. Or, the Aggregator does both of creating list and concatenating the elements.

 

 

Takashi