Alteryx Designer Desktop Discussions

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

How to create formula for a column by looking values from another select tool in Alteryx

SCR
5 - Atom

Hi, I am new to Alteryx.

I have a select tool which gives below output. All the values in Year column will be the same.

 

Table 1

IDLoan ID Amount Year
1234                1,000,0002019
3456                   200,0002019
4789                   275,0002019
4123                     90,0002019
5567                   750,0002019

 

What I need, is use the value from year column which is 2019 in this example and check a similar table that has multiple values for the Year column, create anothe r column "Year to Date Ind". The values in this column will be 1 if Year = 2019 and  =0 else. 

The second table should be like below after adding the new column

 

Table 2

IDLoan ID Amount YearYear to date Ind
6890                 20,00020160
7654                   300,00020170
8236                   930,00020200
9258                1,200,00020191
10239                   369,00020191

 

Thank you in advance!

4 REPLIES 4
fmvizcaino
17 - Castor
17 - Castor

Hi @SCR ,

 

I'm not sure if this is what you are looking for, but here it is.

fmvizcaino_0-1592342053334.png

 

Best,

Fernando Vizcaino

 

bpatel
Alteryx
Alteryx

hi @SCR ,

 

you can also use the join and do a comparison. 

 

bpatel_0-1592412209866.png

 

SCR
5 - Atom

Thank you ! This seems to be very clean solution.

SCR
5 - Atom

Thank you,

That is very good and I never thought about this way. Thank you again 

Labels