I have a data set sorted by x1 and x2. For every value of x1 I want to only print the last value of x2. How do I do this? Would it be something like:
if last.x2 then print;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Itzy was close, but the LAST statement needs to be changed to refer to X1, like in the following: