05-05-2016 08:12 AM - edited 05-05-2016 08:17 AM
We have a data as follows
date state sales
ddmmyyyy a 10
ddmmyyyy b 20
ddmmyyyy c 30
ddmmyyyy d 40
ddmmyyyy e 50
ddmmyyyy a 10
ddmmyyyy b 5
ddmmyyyy c 11
ddmmyyyy d 14
ddmmyyyy e 18
Now how to convert the date so that i can plot a bars chart(grouped bars) for comparision of sales for each quarter(i.e. of previous and current year quarter) with state as category using SAS Report Designer v7.3.
05-05-2016 08:21 AM
Instructions on how to work with dates as SAS dates in SAS Visual Analytics can be found in Bobbie Wagoner's very good blog post
Making Best Use of Date Formats in Visual Analytics Designer
05-05-2016 04:40 PM
If you select a quarter SAS date format you should be able to achieve the bar chart your after.
Please let us know how you go and mark the question as answered if it is.
05-06-2016 03:38 AM
I've done as given in the blog, but the data is coming as sum of 2 year in single bar, where as both should be shown in different bars.
Category used is the Continent. If I use date then its showing differently.
Any work around for this?
05-06-2016 03:46 AM
it it is difficult to understand and visualise what you are wanting and what you are getting. Are you able to provide screenshots to describe the scenario better?
05-06-2016 06:41 AM
Hi @MichelleHomes, this is my sample data
I would like to two different bars for each year grouped by quarters. Where as the chart will have "area" as its category.
05-06-2016 07:12 AM
Sorry Balraj - it isn't clear from sample data screenshot what you want in your visualization. Perhaps you can draw what you want and explain what you mean by "area". For the community to assist, we need to have a clearer understanding of your requirements.
From what I understand you may need to also duplicate your Transaction Date column so that you have 2 date columns. One of them use a format for year and the other date column use a format for quarter. This way you can use the quarter column for grouping.