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
Join us for SAS Community Trivia
SAS Bowl XXIX, The SAS Hackathon
Wednesday, March 8, 2023, at 10 AM ET | #SASBowl
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 open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.