Exploring, predicting and reporting with SAS Visual Analytics and SAS Visual Statistics

SAS VA: Counting the number of observations in a BY-Group

Reply
Occasional Contributor
Posts: 5

SAS VA: Counting the number of observations in a BY-Group

[ Edited ]

Hello,

 

My dataset has the number of clients affected , the corresponding  area, the total of clients per area and the existing equipments.

All the inputs are repeated the number of times that each equipment appears..I know, it does not seem wise but it is constructed in this way.

 

AreaNumber Clients affectedTotal clients areaEquipment
A18200w
A18200e
A18200r
A18200t
A18200y
A18200u
A1200i
B2040SF
B2040A

 

I need to calculate in SAS VA the % of clients affected per area, i.e for area A shall be: (18+1)/200.

 

Is any way count only the distintics grouping by area?

Thanks in advance for your help,

 

Mariana

Smiley Happy

Occasional Learner
Posts: 1

Re: SAS VA: Counting the number of observations in a BY-Group

Posted in reply to mfaqueiroz

Hi Maraina

 

You probably don't know which of the 200 clients from area A that is included pr. equipment.

 

I think you will have to add the uniqe Client-ID to the dataset and then make SAS VA Count the 'distinct' number of Cliet-ID's, by defining an aggregated value. 

 

Frank

Ask a Question
Discussion stats
  • 1 reply
  • 250 views
  • 0 likes
  • 2 in conversation