Free Trial

Alteryx Designer Desktop Discussions

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

Manual input variable and feeding down to data input

siuki91
5 - Atom

Hi Community,

 

Kindly need your assistance here as I am beginner of the Alteryx Designer tool.

 

I have one set of data A as shown in the below and i would like to add in one column such as FX Rate (manually input from the Text box feature or another feature option), and the manual input FX rate variable feed down to the data output.

 

May I ask is there any possible way to achieve this?

 

many thanks.

 

Alter.PNGAlter 2.PNG

2 REPLIES 2
Qiu
21 - Polaris
21 - Polaris

@siuki91 
Maybe a text input tool is better than a formula tool? 😀

1017- siuki91.PNG

danilang
19 - Altair
19 - Altair

Hi @siuki91 

 

When you connect an interface tool to the Q(uestion) input of a tool, the input from the interface tool becomes a variable that's available for use in the connected tool.  

danilang_0-1634468681858.png

In the formula, you have to reference this value.  The formula in the attached workflow is 

if isempty([#1]) then 
	1
else
	tonumber([#1])
endif

The value from the interface tool is called the same as the name that shows up on the connection, [#1] in this case.   If you have multiple interface tools connected to the same tool each connection will get it own number.   You'll notice in the formula, that there is a check for IsEmpty([#1]).  This is because it's possible for the value to be blank in which I just used 1.  Without this any.   Values from interface tools are always strings, so you have to explicitly convert them to a different datatype if required.

 

Dan  

 

Labels
Top Solution Authors