Skip to main content
Solved

compare 2 lists with a transformer


alc33
Contributor
Forum|alt.badge.img+10
  • Contributor

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? :)

View original
Did this help you find an answer to your question?

2 replies

lambertus
Enthusiast
Forum|alt.badge.img+15
  • 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+10
  • 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 😊


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings