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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 551 views
  • 0 likes
  • 2 in conversation