Exploring, predicting and reporting with SAS Visual Analytics and SAS Visual Statistics

SAS VA - time series plot question

Reply
Regular Contributor
Posts: 235

SAS VA - time series plot question

Hello all,

My dataset looks like the following:

DateValueYearValueYear-1
01/01/2014020
02/01/2014010
03/01/2014015
01/01/2015140
02/01/2015150
03/01/2015160

I have calculated in VA the cumulative period of ValueYear and ValueYear-1.

I want to plot this so I can easily compare this year, with the previous year.

Any suggestions?

Filip

Regular Contributor
Posts: 173

Re: SAS VA - time series plot question

Filip,

If you derive the year out of the dates (new calculated item), you can use this field in a bar-graph to stick the two bar together and compare them.

While changing the date format to monthday, you can create your barlabels with these in relation to the created year field.

If needed, I could prepare a sample for you.

Greetings

Regular Contributor
Posts: 235

Re: SAS VA - time series plot question

Hello Peter,

I'm trying to create the dateformat to monthday. Can I still have it like a datevariable?

I tried to calculate it and put in a character format but then the sorting is not correct anymore.

If you want, you can show me a sample.

Thanks,

Filip

Here is a sample of my data: Capture.JPG

Regular Contributor
Posts: 173

Re: SAS VA - time series plot question

Hello Filip,

You are right that this is not possible in one crosstable.  (Date format can not be changed in the way you/I want).

I am not shure about version 7  (I get it next month) but I Know there is a development request making the YTD not only depending on dates)

Lets see if it is in a next release.

For now, only option would be to put two tables besides each other if your dates are running equal in VA.  ( As far as I can see now.)

Other option is to prefix the data....

greetings

Regular Contributor
Posts: 235

Re: SAS VA - time series plot question

Hi Peter, thanks for your time

I got something, but i'ts not cumulative yet...

The NotYearRelated is calculated with an If statement: if CA (Y) <> 0 then return CA(Y) else return CA(Y-1)

Thanks again

Capture.JPG

Regular Contributor
Posts: 173

Re: SAS VA - time series plot question

Hi Filip,

nice work. I fixed it ones in the database :smileyblush:  to get this result.  (be aware it concerns financial period and not calendar periods)

pic2.png

Hopefully  this will be availeble in the next release.

Greetings and succes

Ask a Question
Discussion stats
  • 5 replies
  • 875 views
  • 0 likes
  • 2 in conversation