Start Free Trial

Alteryx Designer Desktop Discussions

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

Conditional Append From two Inputs and No Matching Column Names

bryanmac_92
8 - Asteroid

Hi,

 

I am new to Alteryx. I have two files, a main file and a reference file with various dates. My intention is if the dates in Date_main column are between the range of Start Date and End Date then it show the appropriate fruit name next to the Date_Main column. Not sure how to structure the workflow.

 

Thanks.

 

Main file

Date_Main
10/9/2022
8/3/2022
8/10/2022
12/21/2019
2/7/2021
11/13/2019
7/28/2020
9/20/2019
6/23/2020
4/22/2021
1/28/2020
4/30/2021
11/8/2022
7/21/2020
10/18/2020
2/3/2020
9/5/2019
7/13/2021
3/1/2022
4/8/2021
12/21/2019
2/7/2021
11/13/2019
10/7/2020

 

Reference file

FruitStart DateEnd Date
Apple7/1/20199/2/2019
Watermelon9/3/201910/27/2019
Orange10/28/20191/12/2020
Pear1/13/20203/8/2020
Cherry3/9/20205/3/2020
Strawberry5/4/20206/28/2020
Nectarine6/29/20208/30/2020
Grape8/31/202010/25/2020
Mango10/26/20201/10/2021
Blueberry1/11/20213/7/2021
Pomegranate3/8/20215/2/2021
Starfruit5/3/20216/27/2021
Plum6/28/20218/29/2021
Banana8/30/202110/24/2021
Raspberry10/25/20211/9/2022
Mandarin1/10/20223/6/2022
Jackfruit3/7/20225/1/2022
Papaya5/2/20226/23/2022
Kiwi6/24/20228/28/2022
Pineapple8/29/202210/23/2022
Lime10/24/20221/8/2023

 

 

Intended Output file

Date_MainFruit
10/9/2022Banana
8/3/2022Kiwi
8/10/2022Kiwi
12/21/2019Orange
2/7/2021Blueberry
11/13/2019Orange
7/28/2020Nectarine
9/20/2019Watermelon
2 REPLIES 2
Felipe_Ribeir0
16 - Nebula

Hi @bryanmac_92 

 

One way of doing this

 

Felipe_Ribeir0_0-1671650064545.png

 

JosephSerpis
17 - Castor
17 - Castor

Hi @bryanmac_92 one way to approach this is you use a generate row tool to generate a date between your start and end date and then join it on your main file after some datetime conversations to standardise your dates.

Labels
Top Solution Authors