BookmarkSubscribeRSS Feed
ASHLY
Fluorite | Level 6

I want to create a calculated item which shows Year <= Month


I have field name month which is in date9 format.

Any help how i will calculate this in SAS VA 7.4?

 

Regards\

ASH

1 REPLY 1
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Please clarify what you have, you cannot have a "month" in a date9. field.  A date variable holds a number which is reflective of the number of days since the cutoff period.  This then has a format applied to it like date9 which displays the number of days in a readable format.

 

Next up "Year <= Month" - this does not make any sense as only years up to 12ad will be <= month which can only be 1-12.  So please clarify what you want, provide some example data.

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