Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

User Input: Input multiple values to a filter

wonka1234
10 - Fireball

hi all,

 

I am trying to setup a user input where a user can input multiple values.

 

The filter would be setup like so:    Column A = "1235" , "2353" , "5435".     up to many values

 

How can I accomplish this?

5 REPLIES 5
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @wonka1234,

 

You'll want to use the IN() function, which allows you to list out all the possibilities:

 

[Column A] IN (1235,2353,5435)

 

 

JonathanSherman_0-1638974403272.png

 

I've attached my workflow for you to download if needed!

 

Kind regards,

Jonathan

 

Jonathan-Sherman
15 - Aurora
15 - Aurora

The IN function works with both numeric and non-numeric data types also, in my example I used numeric so there was no need for speech marks but works equally well with them too!

 

[Column A] IN ("1235","2353","5435")

 

JonathanSherman_0-1638974565511.png

 

I've attached my workflow for you to download if needed!

 

Kind regards,

Jonathan

 

wonka1234
10 - Fireball

thanks jonathan - how do I make this as a user input?

Samanthaj_hughes
ACE Emeritus
ACE Emeritus

@wonka1234 You need to use interface tools to have users input during runtime.

 

You can have a text box update the text input for example through the action tool.

#Alteryxrocks
wonka1234
10 - Fireball

@Jonathan-Sherman  hi Jonathan, would you know how to use your answer in a userinput box?

Labels
Top Solution Authors