I have invoice list with dates. As the customer wants to see sales by week, I would like to consume the date in the form of Weeks with numbers. ex: week 1, week 2 week 3 with sales figures.
All I have is dates. I am able to manipulate my dates with all the options available like weekdays, quarter (q1, q2, q3, q4) etc. But I couldn't get weeks with number option.
Pls help with your suggestions. Thanks.
If you have a dataset with a date (Invoice date) you can use the week number function (VA 6.3)
Create a new Calculated Item and use the formula week number(Invoice date).
Now you get the week number of the Invoice date. Do not forget to switch the numeric field to a Category before you start using it.
Ones it is a category, you can use it as a label in graphs or tables.
Sure this will work.
Otherwise this is the mathematical function
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.
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.