Alteryx Designer Desktop Discussions

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

Get earliest date from multiple rows and inserting into a column

Doles_R_714
5 - Atom

Hi Team,

I'm a novice user, and having trouble creating a workflow with dates.

In the sample below, I have two OppIDs. I need to change the values of cells D1:D3 with the earliest date in column C for the OppID 12349020. In this case, the earliest date in column C is "5/31/2024".

I need to do the same with the second Opp ID. I need to change the values of cells D6:D8 with the earliest date in column C for Opp ID 33765. In this case, the earliest date in column C is "4/31/2024".

 

 OppIDColumn BColumn CColumn D
1123490201111/22/202411/22/2024
2123490201211/22/202411/22/2024
3123490201311/22/202411/22/2024
412349020145/31/20245/31/2024
5337765564/31/20244/31/2024
63377658011/22/202411/22/2024
73377654511/22/202411/22/2024
83377654811/22/202411/22/2024
 

so my expected output would look like this:

 OppIDColumn BColumn CColumn D
1123490201111/22/20245/31/2024
2123490201211/22/20245/31/2024
3123490201311/22/20245/31/2024
412349020145/31/20245/31/2024
5337765564/31/20244/31/2024
63377658011/22/20244/31/2024
73377654511/22/20244/31/2024
83377654811/22/20244/31/2024

 

Thank you in advance for your help. 

 

2 REPLIES 2
KGT
12 - Quasar

Firstly change your date columns to actual dates in YYYY-MM-DD format with a date type.

Then a summarise on OppID with Min_ColumnC.

Join that back on and make it your column D

Doles_R_714
5 - Atom

This worked! Thank you so much for the guidance and the quick reply. 

Labels
Top Solution Authors