How does one aggregate an aggregated variable?.... seems like a simple question, but I have an aggregated variable that yields a flag value of 0 or 1... now I wish to sum this variable (I want to get the sum of the 1's).. but I keep getting an error telling me "one cannot aggregate an aggregated variable.".... Anyone out there have an idea how to avoid this??? Thank so much in advance for your assistance.... - Ben
The easiest way is to create the aggregated measure at first place and then create an aggregated table.
This converts the aggregated measure to a numeric static variable on which you can operate with your sum calculation.
I have never seen such an error message. What SAS user interface are you using? Could you please provide the actual code you are using and the ENTIRE log from the step where the error appears?
OK, I see this is a question about SAS Visual Analytics, so I withdraw my question.
Yes... this is VA... apologies, should have mentioned that....
The easiest way is to create the aggregated measure at first place and then create an aggregated table.
This converts the aggregated measure to a numeric static variable on which you can operate with your sum calculation.
Thank you! .... it's the Kobayashi Maru 😎
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.