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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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