Advent of Code is now back for a limited time only! Complete as many challenges as you can to earn those badges you may have missed in December. Learn more about how to participate here!
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Optional Filter Input (Can be Left Blank or Partial) using Textbox

nafong
6 - Meteoroid

Using Filter and a Text Box tool to update a dummy groupid and dummy first name, the workflow looks as so:

Input Tool --> Filter Tool (1) --> Filter Tool (2) --> Output Tool

 

I want the Filter (2) to be optional. If the field is left empty using the textbox tool in Designer, I want it to return all entries of just the inputted Group ID (Filter (1) is mandatory).

 

If not, if it contains "A", I only want it to return anything that starts with A onwards (should not return Mackenzie if I use smith1234, but should return Adam and A-Mack)

 

Group IDFirst Name

Last Name

smith1234

Adam

Smith

smith1234A-MackSmith
smith1234AdamSmith
smith1234MackenzieSmith
sam4321PetuniaSam
sam4321PetuniaSam
pan99PeterPan
pan99PeterPan

 

I have attached a sample workflow. Thank you! 

3 REPLIES 3
binuacs
21 - Polaris

@nafong one way of doing this

image.png

OTrieger
13 - Pulsar

@nafong 

Click on Custom and then write the needed condition using IF formula.

nafong
6 - Meteoroid

@OTrieger I did not know you can use formulas in your Filter Tool! Could I have a bit of guidance in using Custom formulas in my filter? I'm not able to make a reference to the column name [First Name]. 

 

Screenshot 2025-03-24 140618.png

 

Thanks

Labels
Top Solution Authors