Hello,
I am currently using sort tool and a multi row formula tool to get my data set into a partition format along with row numbers. However, I want to compare rows belonging to a partition and pick specific row based on certain condition in that partition as well as the entire data set for all partitions.
Sample data set below. I need to compare rows at the partition level of Name in this case where I will pick row for oscar with flag as 1. However if rows partitioned at name are having flag same values then I will pick the one with earliest date and if the dates are same too then I will pick the row that has highest priority value for that partition. If priority is same as well then I will pick any row.
| Name | Number | Priority | date | Flag |
| Oscar | 1234567890 | 1 | 01/01/2011 | 1 |
| Oscar | 1234567890 | 2 | 01/01/2011 | 0 |
| Jane Joe | 2345678901 | 4 | 01/02/2011 | 1 |
| Jane Joe | 2345678901 | 3 | 01/02/2011 | 1 |
| Don Jon | 3456789012 | 3 | 03/03/2013 | 0 |
| Don Jon | 3456789012 | 2 | 03/04/2013 | 0 |
| Bill Will | 4567890123 | 2 | 04/05/2012 | 0 |
| Bill Will | 4567890123 | 1 | 04/06/2012 | 1 |
| Banner Stark | 5678901234 | 2 | 10/10/2020 | 1 |
| Banner Stark | 5678901234 | 1 | 10/11/2020 | 1 |
| Tony Bruce | 6789012345 | 2 | 10/20/2021 | 1 |
| Tony Bruce | 6789012345 | 1 | 10/20/2021 | 1 |
Is this possible if to do dynamically?
TIA