10-23-2017 01:27 PM - edited 10-23-2017 01:28 PM
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.
|Area||Number Clients affected||Total clients area||Equipment|
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,
10-24-2017 08:32 AM
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.