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.
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