BookmarkSubscribeRSS Feed
Earthling
Calcite | Level 5

Hi,

 

I'm quite new to SAS VA and I was wondering how one can create a measure in SAS VA that is calculated as the sum or count of observations with a condition. Please see the attachment for an illustration of my desired column.

 

 

1 REPLY 1
Pmyosh
Obsidian | Level 7

Hi,

 

For the condition filtering, go to the filter tab. Once you apply filter, your measures will be filtered accordingly prior creating calculated values.

 

For the count of observations, you may use the function ByGroup (sourcevariablename) to create a newvariable in the Calculated Items of Aggregated Measure then add this new variable in the Data Role.

 

Hope this helps

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 1 reply
  • 1297 views
  • 0 likes
  • 2 in conversation