Skip to main content
Solved

How to: Feature based Filter?

  • March 14, 2025
  • 4 replies
  • 44 views

pkno
Contributor
Forum|alt.badge.img+5

Hello everyone,

I was wondering if there is a simple way to filter one Dataset by comparing key-values with another Dataset. Basically a Join but onlky keeping Left Attributes.

Example:

Dataset1
 

Project SubID moreAttributes from Dataset1
ABC 1 ...
ABC 2 ...
DE 1 ...
DE 2 ...

 

Dataset 2:

 

Project SubID different Attributes from Dataset2
ABC 1 ...
ABC 1 ...
ABC 3 ...
ABC 3 ...
DE 2 ...
FG 3 ...

 

I want to Filter Dataset 2 to only keep the ABC|1 and DE|2 rows because they match dataset 1. I am sure I could accomplish this via join and subsequently throw out all the Attributes that were introduced from dataset 1, but I was wondering if there is an easier way. 

Thanks all

Best answer by ebygomm

Why not just keep only the projectID and SubID from dataset 1 and then use that in a FeatureJoiner of FeatureMerger?

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

koulsoum
Contributor
Forum|alt.badge.img+12
  • Contributor
  • March 14, 2025

Hi ​@pkno , I think you can create an attribute ‘dataset’ (dataset = 1 for the first and dataset = 2 for the second one)  then use the Transformer Matcher with Selected attribute : Project, SubID, and from the port matched use a tester to filter ‘dataset’ = 2

 


ebygomm
Influencer
Forum|alt.badge.img+45
  • Influencer
  • Best Answer
  • March 14, 2025

Why not just keep only the projectID and SubID from dataset 1 and then use that in a FeatureJoiner of FeatureMerger?


pkno
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • March 14, 2025

Why not just keep only the projectID and SubID from dataset 1 and then use that in a FeatureJoiner of FeatureMerger?

 

Why didn’t I think of that, that should be it. Thanks


ebygomm
Influencer
Forum|alt.badge.img+45
  • Influencer
  • March 14, 2025

You could always use an InlineQuerier, if you wanted to do it in one step