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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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