Skip to main content
Question

Using IN operator with tester transformer

  • February 12, 2024
  • 2 replies
  • 205 views

derekg
Participant
Forum|alt.badge.img+1

I have a list of lab test results and only want to include the rows that match a list of analytes. I am trying to use the IN operator in the tester transformer.

I have followed the advice from this post:

Help with syntax when using Tester transformer | Community (safe.com)

This is what I have:

Sheet1 contains the test results, text_line_data contains the list of analytes as one feature. I have merged them to get this:

 

The “text_line_data” column looks like this:

 

My tester transformer is set up as below:

 

However, all rows fail the test. What am I doing wrong?

 

 

2 replies

oscard
Influencer
Forum|alt.badge.img+22
  • Influencer
  • 344 replies
  • February 12, 2024

The IN parameter takes a comma delimited list: A,B,C…

You also need to remove the quotation marks from the list. Do that first and then use an Aggregator transformer to create the list separated by commas.


redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3700 replies
  • February 12, 2024

I think the Contains operator, rather than In, does what you want (if you swap the left and right values)