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