Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Bengaluru, IN

Welcome to the Bengaluru User Group

Click in the JOIN GROUP button in Home to follow our news and attend our events!

How to put two condition in filter

Neeta_Latwal
7 - Meteor

Hello Community,

 

I try to find a solution to validate below, how to below two login in one filter tool  :-

 

Column A contain "Pair off"

Column B: length greater than 7 

 

Thanks,

Neeta

1 REPLY 1
p-g
8 - Asteroid

To create a filter in Alteryx Designer that validates both conditions (Column A contains "Pair off" and Column B has a length greater than 7), you can use the Filter tool with a custom expression. Here's how you can do it:

  1. Add the Filter Tool: Drag the Filter tool onto the canvas and connect it to your data stream.

  2. Configure the Filter Tool:

    • In the Basic Filter tab, switch to the Custom Filter option.
    • Enter the following expression:

      Contains([Column A], "Pair off") AND Length([Column B]) > 7

This expression checks if "Pair off" is present in Column A and if the length of the string in Column B is greater than 7.

  1. Run the Workflow: After setting up the filter, run the workflow to see the results.

This should filter your data based on the specified conditions. If you have any more questions or need further assistance, feel free to ask!