In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Changing Part of a Formula Tool through an App

keng
8 - Asteroid

Hi, 

 

I'm trying to replace part of a formula through a text input in an Alteryx app. 

 

For some reason, it is not working. I want the users to have the flexibility of using the OR function as well if they have multiple choices. Any suggestions on why this might not be working? 

Text Box.PNG
Action.PNG
Formula.PNG
Overview.PNG

    

2 REPLIES 2
apathetichell
20 - Arcturus

Your formula is wrong. OR 'Tuscon' is a boolean - like OR ('Tuscon'=True).  Even it still replaces it you are replacing it with a new Boolean expression which will be false.

 

you want an IN statement here  value IN('Tuscon','Phoenix') you should then replace what's in your IN statement (except the parenthesis EXACTLY. So your user will have to enter something like "Tuscon","Phoenix" - I would recommend using a listbox for this with lisbox -> list mode -> actoin tool - repalce vs the way you are doing this. 

keng
8 - Asteroid

You are a lifesaver! Thank you! 

Labels
Top Solution Authors