Data set growth has 50K records
here are sample data set looks like, I would like to compare by node,period of growth value (REC1-Rec2)> +-5000 the select the Node or display the node
this needs to repeated all the records by node and period only
STRATEGY | NODE | Period | Fast_GROWTH_DAY_NUM | GROWTH_VALUE |
Mar9QF Strategy | 892922 | 1 | 1 | 32468.1295 |
MML Strategy | 892922 | 1 | 1 | 32468.1295 |
MML Strategy | 892922 | 2 | 1 | 36007.7485 |
Mar9QF Strategy | 892922 | 2 | 1 | 36007.7485 |
Mar9QF Strategy | 892922 | 3 | 1 | 36007.7485 |
MML Strategy | 892922 | 3 | 1 | 36007.7485 |
MML Strategy | 892922 | 4 | 1 | 36007.7485 |
Mar9QF Strategy | 892922 | 4 | 1 | 36007.7485 |
How to do this SAS
In this sample data, can you indicate which data you want to compare with which data?
Please post data in usable form and show what you expect as result.
The lag-function can be used to access values in prior observation(s).
Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.