BookmarkSubscribeRSS Feed
PaulEveleigh
Calcite | Level 5

Hi there,

I am brand new to SAS VA so apologies if my question is overly simple.

I am trying to produce a graph that shows cumulative sales during a month (by day) compared to the same month last year. (As per image below).

I can't seem to work out how to do this - would appreciate some assistance.

Kind Regards

Paul

Cumulative Sales.bmp

1 REPLY 1
Sam_SAS
SAS Employee

Hi Paul,

The CumulativePeriod operator in an aggregated measure is what you would use to perform this type of task.

https://support.sas.com/documentation/cdl/en/vaug/67500/HTML/default/viewer.htm#n1lxnqfip132can1hdzu...

Unfortunately, you cannot display cumulative values by day for a year other than the current year.

You can compare cumulative values by month (or by quarter) to the previous year (or quarter).

You can display cumulative values by day for the current year, month, quarter.

It is conceivable there's some workaround I'm not aware of.

Thanks,

Sam

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1 reply
  • 1604 views
  • 0 likes
  • 2 in conversation