BookmarkSubscribeRSS Feed
thegraduate
Calcite | Level 5
Hi All,

I have 12 files that contains a customers risk rating (monthly files). So for every URN that changed from Low - Med and Med - High, I would like to count the volume of these accounts and to graph it by the customers location (post code). What is the best wat of doing this?

Thanks,
1 REPLY 1
Doc_Duke
Rhodochrosite | Level 12
I would start by appending the files to get one big file. That is the Append task in EGuide. Then SORT by Customer and date.

Next, you will have to write some SAS code to transform the 12 (say) records per customer into 11 change records; that uses the LAG function.

If you are looking for one value per customer (rather than one per month change), you could do that in an EGuide Query using the MIN and MAX aggregate functions. If you use the Query Builder, you can skip the SORT. (Your question is not sufficiently specific to tell what you want.)

The plots could be as simple as bar charts (poor paper-to-ink ratio) to a tile plot or a series of maps.

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 25. 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
  • 1154 views
  • 0 likes
  • 2 in conversation