BookmarkSubscribeRSS Feed
mfaqueiroz
Fluorite | Level 6

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

🙂

1 REPLY 1
Frank_BB
Calcite | Level 5

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

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
  • 1596 views
  • 0 likes
  • 2 in conversation