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: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of 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
  • 1 reply
  • 1342 views
  • 0 likes
  • 2 in conversation