Hello, I have the following data table: ID Measure Number Date Flag Output 1 A 5 11/1/2014 1 3 1 A 1 12/1/2014 1 3 1 A 3 1/1/2015 1 3 1 A 5 10/1/2015 1 5 1 A 6 11/1/2015 1 5 1 A 8 12/1/2015 1 5 1 A 3 1/1/2016 1 5 1 A 6 2/1/2016 1 5 1 A 1 8/1/2017 1 6 1 A 6 9/1/2017 1 6 1 A 10 10/1/2017 1 6 1 A 2 11/1/2017 1 6 1 A 14 12/1/2017 1 6 1 A 5 1/1/2018 1 6 I am trying to select the output variable with the greater output number, but earlier time period. For example, the output '5' is greater than '3', but the date is earlier than the output '6', so I would select that. However, I'm not sure how to write this coding. Eventually, I want to be able to select the following data only from the above table. ID Measure Number Date Flag Output 1 A 5 10/1/2015 1 5 1 A 6 11/1/2015 1 5 1 A 8 12/1/2015 1 5 1 A 3 1/1/2016 1 5 1 A 6 2/1/2016 1 5 Thank you for any help in advance.
... View more