IS there a way to divide my date variable i just want it, i just want it to divide half yearly, its same like quaterly but i want only 2 parts for year. Is there a way to do that?
Hi
Create a new calculated item using the following expression
IF ( Month('someDate'n) BetweenInclusive(1, 6) ) RETURN Concatenate(Format('someDate'n[Raw], 'YEAR4.'), 'H1') ELSE Concatenate(Format('someDate'n[Raw], 'YEAR4.'), 'H2')
You need to adjust the expression for your date data item
Bruno
Hi
Create a new calculated item using the following expression
IF ( Month('someDate'n) BetweenInclusive(1, 6) ) RETURN Concatenate(Format('someDate'n[Raw], 'YEAR4.'), 'H1') ELSE Concatenate(Format('someDate'n[Raw], 'YEAR4.'), 'H2')
You need to adjust the expression for your date data item
Bruno
Thanks for the suggestion
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.
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.