Skip to main content
Question

Using IN operator with tester transformer

  • February 12, 2024
  • 2 replies
  • 122 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+21
  • Influencer
  • 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+48

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


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