Hi there,
I would like to create a cumulative sum (running total) based on a category (and not a date) in SAS VA:
Example:
Thank you in advance for your help.
Thanks a lot for your reply. That was helpful.
Regards,
Sarthak
Hi sarthak89,
I'm glad you found Sam's response helpful! Feel free to "accept as solution" or "like" his reply. This helps out other community members who may run into the same issue.
Thanks!
Anna
Hi, Sam_SAS,
I have same this issue, so the solution for "calculate the running total as part of your data query",
you can show how to this solution,
Hello,
If you have the appropriate permissions in SAS VA, then you can access the data builder. On the home page you will see a "Data preparation" link.
In the data builder, you can edit the SQL expressions for your columns or edit the SAS data step for your query.
I am not an expert in this area so I am not sure exactly what expression you would want to build to calculate your running total.
I hope that helps,
Sam
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.