Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

How to have column record earliest date and latest date

Hoss2434
7 - Meteor

Hello I was hoping if anyone can show how to create a separate column that displays the earliest column and latest column in a data field. Below is a before and after of what I am looking for:

 

Before:

Customer#Transaction Date
Customer 112/15/2022
Customer 11/20/2022
Customer 13/10/2023
Customer 211/9/2022
Customer 22/12/2023
Customer 2

3/8/2023

 

 

After:

Customer#Transaction DateEarliest DateLatest Date
Customer 112/15/202212/15/20223/10/2023
Customer 13/10/202312/15/20223/10/2023
Customer 11/20/202212/15/20223/10/2023
Customer 22/10/202311/9/20223/8/2023
Customer 211/9/202211/9/20223/8/2023
Customer 23/8/202311/9/20223/8/2023

 

So in this scenario, we have separate columns that displays the earliest, and the latest transaction made based n Customer#.

If anyone can help me create a formula for this that would be greatly appreciated!

 

Thanks

2 REPLIES 2
BS_THE_ANALYST
14 - Magnetar
14 - Magnetar

@Hoss2434 here's one way:

BS_THE_ANALYST_0-1678731991206.png

 

 

All the best,
BS

LinkedIN

Bulien
BS_THE_ANALYST
14 - Magnetar
14 - Magnetar

@Hoss2434 
If you wanted to change the format back to how you wanted it:

BS_THE_ANALYST_0-1678732176508.png

 

 

All the best,
BS

LinkedIN

Bulien
Labels
Top Solution Authors