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. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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

Dynamic input

Hamder83
11 - Bolide

Hi 

I have a simple flow where I wanna update my sql based on a input selection:

Hamder83_0-1603812264722.png

Hamder83_1-1603812277035.png
But it does not work.

How to I format the sub_carrier_id so the query works? 

The sql where statement is like this:

where b.consignee_number = '1000004192'
and bl.sub_carrier_id in ('1000000008')
and blsl.scan_date >= '2020-09-01'
and blsl.scan_date < '2020-10-01'
and bl.destroyed_at < '2015-01-01'


 

1 REPLY 1
morr-co
10 - Fireball

Hi @Hamder83 :

 

I believe the issue is how you have sub_carrier_id formatted. When you modify an IN statement Alteryx knows to concatenate the values so you would want to pass a list of values rather than concatenating the list yourself. Your input should look like the image below.

 

Screen Shot 2020-10-27 at 9.34.04 AM.png

 

Another option is to leave the values as you currently have them but use the "Replace a Specific String" option. 

 

Screen Shot 2020-10-27 at 9.36.42 AM.png

Labels
Top Solution Authors