BookmarkSubscribeRSS Feed
kpakpo
Calcite | Level 5

i have customer feedback ranking for my staff and 5 of them all scored 100 percent how do i rank the based on how frequently they were rated

 

Screenshot 2023-01-13 at 02.07.45.png

6 REPLIES 6
Tom
Super User Tom
Super User

Not sure what you mean.

If you want to number the observations just use a simple SUM statement.

proc sort data=have ;
  by descending score descending number_of_times_rated;
run;
data want;
  set have;
  by descending score descending number_of_times_rated;
  rank + 1;
run;
andreas_lds
Jade | Level 19

I won't open any attachments, so please post data in usable form and show the expected result.

PaigeMiller
Diamond | Level 26

@kpakpo wrote:

i have customer feedback ranking for my staff and 5 of them all scored 100 percent how do i rank the based on how frequently they were rated


If I am understanding properly (and maybe I am not understanding properly), you can rank via PROC SORT

 

proc sort data=have out=have_sorted;
    by descending score descending number_of_times_rated;
run;

 

Please do not include data as file attachments or screen captures. Many of us will not download attachments, and we can't write code from screen captures. We need data provided as working SAS data step code, see https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat.... Many people go ahead and just ignore this request, but that is not a good way to get help ... do not ignore this request. We're trying to help you, but you need to help us too.

 

--
Paige Miller
ballardw
Super User

Proc sort data=yourdata;

   by descending score descending numberoftimesrated;

run;

 

proc print data=yourdata;

run;

kpakpo
Calcite | Level 5

i have customer feedback ranking for my staff . how do i rank the based on how frequently they were rated. how do I know who is the best staff in customer service 

 

Name.  score  Number of times rated 

Joe.       100.      3

Matt        100.     5

Phil.         99.      15

Eugene.   90.      20

Kobby.     99.       15

PaigeMiller
Diamond | Level 26

This is a duplicate thread. All answers should go in your other thread.

 

@kpakpo do not post the same question multiple times.

--
Paige Miller

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 6 replies
  • 1620 views
  • 0 likes
  • 5 in conversation