Skip to main content
Solved

Filter data based on multiple columns

  • November 17, 2021
  • 4 replies
  • 124 views

Forum|alt.badge.img

As an example, in Excel you would use the filter function and select specific values from the drop down menu across multiple columns.

 

How in FME do you filter rows of data based on attributes held in multiple columns?

 

I've looked at the two SQL translators; SQLCreator and SQLExcuter but both need connecting directly to a database. In my case I need to use the transformer within my workflow.

 

Thanks.

Best answer by drc43

You can use a Tester transformer with an AND or OR (or other) logic on multiple rows in the transformer to 'test' multiple fields.

http://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/tester.htm

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

4 replies

drc43
Contributor
Forum|alt.badge.img+11
  • Contributor
  • Best Answer
  • November 17, 2021

You can use a Tester transformer with an AND or OR (or other) logic on multiple rows in the transformer to 'test' multiple fields.

http://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/tester.htm


geomancer
Evangelist
Forum|alt.badge.img+47
  • Evangelist
  • November 18, 2021

Or if you absolutely want to use SQL, take a look at the InlineQuerier.


Forum|alt.badge.img
  • Author
  • November 19, 2021
drc43 wrote:

You can use a Tester transformer with an AND or OR (or other) logic on multiple rows in the transformer to 'test' multiple fields.

http://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/tester.htm

Thank you that's perfect.


Forum|alt.badge.img
  • Author
  • November 19, 2021
geomancer wrote:

Or if you absolutely want to use SQL, take a look at the InlineQuerier.

I'll keep this in mind for the future!


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