Skip to main content
Solved

Testing if unique values have different values in another field.

  • January 11, 2021
  • 4 replies
  • 141 views

Hi, How I can test if unique values have different values in another field. Example: 

Field1 Field2

AB1.... 1

AB1.... 2

AB3.... 3

AB4 ....4

AB5.... 5

AB6.... 6

AB7.... 7

AB8.... 8

So, AB1 has in field 2, values 1 and 2. So I want to filter that separately. Values can be changed, so I want generic solution. Can anyone help me with that? Thank you

Best answer by rahulsharma

Hi @gisgis2014devel​ 

I think using a DuplicateFilter transformer on Field1 you should be able to get the desired result.

DuplicateFilterNOTE: As long as the Field Name or Attribute is same, this would work with any dataset(dynamically)

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.

4 replies

rahulsharma
Safer
Forum|alt.badge.img+10
  • Safer
  • 359 replies
  • Best Answer
  • January 11, 2021

Hi @gisgis2014devel​ 

I think using a DuplicateFilter transformer on Field1 you should be able to get the desired result.

DuplicateFilterNOTE: As long as the Field Name or Attribute is same, this would work with any dataset(dynamically)


Forum|alt.badge.img+2
  • 194 replies
  • January 11, 2021

Attached fmwt file.

 

Using two statistics calculators and two testers will give you the result you want I think. You can do the same with multiple aggregators, matchers, or any other blocking (group by) transformer that creates a count.

 

Capture


Hi @gisgis2014devel​ 

I think using a DuplicateFilter transformer on Field1 you should be able to get the desired result.

DuplicateFilterNOTE: As long as the Field Name or Attribute is same, this would work with any dataset(dynamically)

Thank you, it does what I want in a simple way.


Attached fmwt file.

 

Using two statistics calculators and two testers will give you the result you want I think. You can do the same with multiple aggregators, matchers, or any other blocking (group by) transformer that creates a count.

 

Capture

Thank you a lot :). I will try your solution as well. Also rahulsharma solution worked well.