Hi! I am using SAS 7.4 at the moment, we will migrate soon, but I have a date field that I am trying to turn into 2 columns: first date and last date when an observation was seen. I have tried agg. measure and calc item but I get type mismatch because of the date field. I figured I could change the date format (into a measure?) first and then build the other 2 custom categories. Any input on how to best perform all these steps or if my logic is wrong for the outcome I need? Thanks!
Example data set:
Process Error 1 Severity 1 First Date Observed Last date Observed
For columns, I have
1-minor error (to be used in the process error column (cat)
2-severity (cat)
3-localdate (cat)
Hello @shakira214 ,
Could you please clarify do you want to create a min and max date for certain specific groups?
Best regards,
Petri
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.
Find more tutorials on the SAS Users YouTube channel.