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
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.