BookmarkSubscribeRSS Feed
shakira214
Calcite | Level 5

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)

1 REPLY 1
PetriRoine
Pyrite | Level 9

Hello @shakira214 ,

 

Could you please clarify do you want to create a min and max date for certain specific groups?

 

Observed.PNG

 

Best regards,
Petri

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Tips for filtering data sources in SAS Visual Analytics

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.

Discussion stats
  • 1 reply
  • 605 views
  • 0 likes
  • 2 in conversation