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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 1314 views
  • 0 likes
  • 2 in conversation