Alteryx Designer Desktop Discussions

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

Pull data from reference tableon condition, like excel lookup in if statement

Thomas19
5 - Atom

Hello everyone, 

I am struggling with reproducing a standard Excel scenario in Alteryx. 

I have two tables. A Data Table containing the following columns, intially with an empty "Target" column.

  

DATA TABLE

IDKindValueTarget
1a1110
2a1314
3b1920
4a1718
5b1516
6b1716
7a32
8a56
9b54
10a76
11b98
12a1514
13a12

 

The second table is the reference table, from which the target value should be pulled. "Target" depends on the kind and should then match the "Value" field.

 

REFERENCE TABLE

ValueKind aKind b
121
324
564
768
9108
111012
131412
151416
171816
191820

 

 

In excel that would be something like:

=if(Kind="a";vlookup(Value;REF-TABLE;2);vlookup(Value;REF-TABLE;3))

 

How can I populate the Datea-Table / Target column with the correct values from the Reference Table?

 

Many thanks in advance! 

2 REPLIES 2
AlanSchaeffer
6 - Meteoroid

Hi @Thomas19 ,

I'm not an expert in Alteryx but I've made a simple workflow that might help you on you're problem.

 

Sans titre.png


If you have any question please ask them.

Sincerely,
Alan

Thomas19
5 - Atom

Hi Alan, many thanks that does the trick!

Labels