I have the below data set that I am trying to condense. Right now I have multiple observations with the same Cost_Center, and I would like observations with the same cost_center combined, while maintaining all of the other variables in place.
Please let me know if I need to clarify anything to get help with this.
I suspect you can do this via a summary task, just add all the variables you want to remain in the GROUP section and then the analysis vars for the ones you want to sum, average or summarize in some manner.
If you need further help please post data in a text format, not as an image, and what you want as the output.
You also have not specified if you're coding or using the GUI.
@aperansi wrote:
I have the below data set that I am trying to condense. Right now I have multiple observations with the same Cost_Center, and I would like observations with the same cost_center combined, while maintaining all of the other variables in place.
Please let me know if I need to clarify anything to get help with this.
@aperansi wrote:
Reeza, can you tell me how to put my data in text format so that I can provide that to you?
Post in a code box using the 6/7th icon.
@aperansi wrote:
Also, when you say I can do this via summary task, do you mean for me to use a Proc Summary statement?
No, that's why I asked if you're programming or using the GUI. You didn't answer that question.
I am coding this with SAS Enterprise Guide
Sorry, but it is still not clear what you mean by "condense".
How to post data is explained here: https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat...
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.