Alteryx Designer Desktop Discussions

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

How to look up fields from another table with multiple condition - inbetween

balachandra2164
6 - Meteoroid

Hi, 
I have been trying to lookup field from one table to another table with multiple condition where as fields are numeric and string fileds

Could you please help to figure out this in alteryx designer.

 

Source Table consist two columns : Key column (numeric field) & Source Date

Look Up Table : Key column (numeric) , Lookup_Start_date , Lookup_End_date , Updatedate,Lookup value (numeric)

 

Condition is :

Key column = Key column 

&

Source Date in between Lookup_Start_date ,Lookup_End_date 

 

in case multiple values are available , populate look up with latest Updatedate

 

Souce Table Info:

 

balachandra2164_0-1635393009930.png

 

Look Up Table :

 

balachandra2164_1-1635393034187.png

 

Final Required Table :

balachandra2164_2-1635393172302.png

 

note: Date fields are dynamic, always changing ; 

 

 

1 REPLY 1
Sebastiaandb
12 - Quasar

@balachandra2164 

 

Here is my solution! 

You basically generate dates for each date between start and end of table 2. In that way, you'll have a possible key to match your source date from table 1 :-). Hope it helps! 

 

Sebastiaandb_0-1635400212030.png

 

Greetings,

 

Seb

Labels