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 😎
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.