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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 1139 views
  • 0 likes
  • 2 in conversation