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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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