BookmarkSubscribeRSS Feed
Xodiak
Calcite | Level 5

I"m new to SAS so I apologize if I'm leaving anything out.

I have a column that has costs per member in it.  Over 500k rows each unique members but some costs maybe the same.  I need to filter out that table based on the Total_Cost column and I only want the top 2 percent of cost.  I know how to do this in access, just enter 2% in the Top Values filter in properties,  However I am not sure how to do this in SAS EG 5.1 which is what the company provides us with.

1 REPLY 1
gergely_batho
SAS Employee

First use the Rank Task - this will create a new columns for you with ranks.

Then use a Filter and Sort Task (or Query Builder) and filter on the new created column.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 833 views
  • 0 likes
  • 2 in conversation