The data is case date events and I want the first typex as startpoint date and always typey as end date. I think I need a counter which os reset by the endtype??? any suggestions are welcome. my data looks like this caseid, date, type 122220 12/7/2016 typex ----->want this one in output, first typex.sorted by date and caseid 122220 7/8/2016 typex 122220 7/9/2016 type x 122220 10/10/2016 typey------->want this one in output, type y 122220 17/10/2016 typex ----->want this one in output, first typex, sorted by date and caseid 122220 24/10/2016 typex 122220 7/9/2016 typex 122220 10/10/2016 typey------->want this one in output, type y 122300 3/3/2016 typex ----->want this one in output, first typex sorted by date and caseid 122300 10/3/2016 typex 122300 7/9/2016 typex 122300 10/10/2016 type y------->want this one in output, type y 122300 17/10/2016 typex ----->want this one in output, first typex, sorted by date and caseid 122300 24/10/2016 typex 122300 26/10/2016 type x 122300 26/11/2016 type y------->want this one in output, type y
... View more