BookmarkSubscribeRSS Feed
paul_e
Obsidian | Level 7

Hello,

 

I need to count the number of individuals for each group that fulfil a requirement regarding the group, for instance: How many individuals in a group have a difference of less than 2 from the group average? When I try to create the corresponding calculated item in VA I get the following error since VA won't combine non-aggregated and aggregated values with numeric operators:

 

"Operand can only be aggregated, but this operator does not support aggregation"

3 REPLIES 3
paul_e
Obsidian | Level 7

I understand that I can persist the aggregated values in a new aggregated table but this will cause a loss of interactivity since the aggregated table doesn't get updated when report parameters change.

BrunoMueller
SAS Super FREQ

Providing sample data and expected result will help in understanding what you want.

You can mock up something with sashelp.cars, this is available in every SAS installation.

 

In my experience when you use control objects on page or report level they will also filter aggregated data sources.

 

Also have a look at the AggregateCells operator, as this allows you to define a different bygroup for aggregation as is used on the object. 

BrunoMueller
SAS Super FREQ
The last paragraph should be:
Also have a look at the AggregateTable operator, as this allows you to define a different bygroup for aggregation as is used on the object.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Tips for filtering data sources in SAS Visual Analytics

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.

Discussion stats
  • 3 replies
  • 671 views
  • 0 likes
  • 2 in conversation