Skip to main content
Solved

compare 2 lists with a transformer

  • June 26, 2024
  • 2 replies
  • 78 views

alc33
Contributor
Forum|alt.badge.img+13

Hi!

Does it exist an easy way (1 transformer) to compare 2 lists from differents dataset ?

For example :

dataset 1 - feature 1

list{0}.NAME = A

list{1}.NAME = B

dataset 2 - feature 1

list{0}.NAME = B

list{1}.NAME = C

I would like to have the difference so here :

=>on the dataset1, feature1 “A” is missing

=>on the dataset2, feature1 “C” is missing

the index of the value doesn’t matter, juste the presence of the value is important.

I succed with 2 ListExploder and 1 FeatureMerger, and I imagine It would be working too with  ListExploder, FeatureMerger and ListSearcher, but maybe it exist a transformer to do that more quickly.

Thanks!

Best answer by lambertus

Hi @alc33 before I red your solution I also thought about ListExploder combined with FeatureJoiner or Merger, maybe you can create a useful custom transformer to do this in one tool? :)

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

lambertus
Enthusiast
Forum|alt.badge.img+24
  • Enthusiast
  • Best Answer
  • June 26, 2024

Hi @alc33 before I red your solution I also thought about ListExploder combined with FeatureJoiner or Merger, maybe you can create a useful custom transformer to do this in one tool? :)


alc33
Contributor
Forum|alt.badge.img+13
  • Author
  • Contributor
  • June 26, 2024

@lambertus Thanks for your answer!

Effectively, I didn't think about it. If that transformer doesn’t exist, I could create it for ulterior use 😊