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

Min() and Max() for multiple IDs

Czaggy
7 - Meteor

Hello,

 

I want to have the min() and max() values of a column as outputs in an additional row. The issue now is that i want multiple rows with their respective outputs, one row for each part of the column that belongs to a unique ID.

For example (the last 4 rows should be the output and joined with the rest of the data)

 

ProjectIDDate
101.07.2019
101.08.2019
101.09.2019
101.08.2019
115.08.2019
123.10.2019
210.08.2019
210.09.2019
215.11.2019
215.08.2019
220.09.2019
230.12.2019
1MAX() from Date with ID 1
1MIN() from Date with ID 1
2MAX() from Date with ID 2
2MIN() from Date with ID 2

 

I would be really thankful for any kind of input or ideas!

3 REPLIES 3
LordNeilLord
15 - Aurora

Hey @Czaggy 

 

Using the summarize tool, you can group by ProjectID and get the Min & Max of date, you'll need to transpose the data so it's in the same format as your original table, then you can simply union this back on to the bottom of your original table.

 

Hope that helps

 

Neil

CRowlatt
8 - Asteroid

Hi @Czaggy,

 

@LordNeilLord beat me to the reply, but I've done the same as he suggested.

 

See attached.

 

Chris

Czaggy
7 - Meteor

Thank you guys!

 

Exactly what I needed.

Labels
Top Solution Authors