Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
Check out our powerful new search update! You can read more here. Please let us know if you have any feedback by creating a topic here.
SOLVED

Min() and Max() for multiple IDs

Highlighted
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!

Highlighted
Alteryx Certified Partner

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

Asteroid

Hi @Czaggy,

 

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

 

See attached.

 

Chris

Highlighted
Meteor

Thank you guys!

 

Exactly what I needed.

Labels