We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Lookup table containing duplicates

sagarghimire
7 - Meteor
Main Table  
   
Record IDDate 
11/30/2021 
26/1/2021 
   
   
   
Lookup Table 
   
Record IDStart DateEnd Date
11/1/20212/1/2021
13/1/20214/1/2021
15/1/20217/1/2021
26/6/20216/30/2021
27/1/20218/1/2021
   
   
Result Desired  
   
Record IDDateFlag
11/30/20211
26/1/20210

 

 

Record Id is unique in main table but is duplicated in look up table. If the date of record ID on the main table exists between start and end dates in lookup table, flag that as 1 else flag it as 0.

 

How can I achieve this? Thanks in advance. Note this is just a sample, these tables have thousands of records. 

 

1 REPLY 1
Qiu
21 - Polaris
21 - Polaris

@sagarghimire 

We can first translate thoest field for Date to Date format by DateTime tool then join the Record ID.

1003-sagarghimire-A.png1003-sagarghimire-B.png

Labels
Top Solution Authors