BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
User12
Obsidian | Level 7

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?

 

1 ACCEPTED SOLUTION

Accepted Solutions
BrunoMueller
SAS Super FREQ

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

View solution in original post

2 REPLIES 2
BrunoMueller
SAS Super FREQ

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

User12
Obsidian | Level 7

Thanks for the suggestion

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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
  • 2 replies
  • 878 views
  • 1 like
  • 2 in conversation