I'm trying to create a table that calculates the top 10 companies based on the number of unique clients they have. I have a CompanyName variable, a ClientID variable, and a ProjectID variable, so there are, for example, 10 observations for Company ABC because they have 6 client IDs they are working with for a total of 10 different projects (so some of the clients are repeated but I only want to count each unique client). I am not trying to calculate projects, just the number of unique clients for each company and then sorting by the company with the most clients to create the top 10 list. My data set looks something like: CompName. ClientID. ProjectID CompanyABC. 123 0022 CompanyABC 123 0023 CompanyABC 235 0042 CompanyDEF 152 0074 ... Ultimately, I want something along the lines of: Company Client Count CompABC 2 CompDEF 2 CompXYZ 1... I have tried proc summary, report, print, frequent, and sql...I can't seem to get a table that has more than the first observation (which is not even one of the "top" companies). Any help is much appreciated!
... View more