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)
ProjectID | Date |
1 | 01.07.2019 |
1 | 01.08.2019 |
1 | 01.09.2019 |
1 | 01.08.2019 |
1 | 15.08.2019 |
1 | 23.10.2019 |
2 | 10.08.2019 |
2 | 10.09.2019 |
2 | 15.11.2019 |
2 | 15.08.2019 |
2 | 20.09.2019 |
2 | 30.12.2019 |
1 | MAX() from Date with ID 1 |
1 | MIN() from Date with ID 1 |
2 | MAX() from Date with ID 2 |
2 | MIN() from Date with ID 2 |
I would be really thankful for any kind of input or ideas!
Solved! Go to Solution.
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
Hi @Czaggy,
@LordNeilLord beat me to the reply, but I've done the same as he suggested.
See attached.
Chris
Thank you guys!
Exactly what I needed.
User | Count |
---|---|
17 | |
15 | |
15 | |
8 | |
5 |