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

Alteryx Designer Desktop Discussions

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

Filtering by first three characters

Inactive User
Not applicable

Hi!

 

I am trying to filter by the first three numbers of ManagerID. I am doing this in database. Any ideas on how I could do this? Thank you!

5 REPLIES 5
EW
11 - Bolide

Try using a Filter In-DB tool with something like: 

 

"ManagerID" LIKE '123%'

 

To filter for records where the first three characters are 123.  

 

filter in-db.PNG

Inactive User
Not applicable

Thanks! Do you know how I could do it so the end user can do the filter? I am making this an app.

EW
11 - Bolide

I'm less familiar with apps, but try this!  I've got it set to update the value 111 to the input value.  

 

In DB App.PNG

 

I'm not sure how to post functional in-DB Connect or  Data Stream In, so this is unconfigured but the filter seems to be working.  

Inactive User
Not applicable

That is perfect, thank you! Would you mid explaining how you build that out? 

EW
11 - Bolide

Trial and error for me and app tools!  🤣

 

Once you have your filter in-DB tool inserted and configured, you'd insert a Control Parameter tool connected to it, and a Text box tool connected to the control parameter.  You'd configure the Control Parameter to Update Value, Replace a specific string, and whatever your placeholder text is like this:

EW_0-1677879717884.png

 

Does that help?  

Labels