BookmarkSubscribeRSS Feed
ydathamaharushi
Calcite | Level 5

Hi All, 

 

How we on calculate scores from same observation without calculating total scores observation and by creating a new var named as Total_Score which has to match with total_score observation under Scores var in a ultimate way and without changing the order of the var and its values.

 

Pt_IdQuestionsScoresVisitTotal_Score
1Limitations Of Activities11 
1Moderate Activities11 
1Climbing Several Flights Of Stairs11 
1Bending, Kneeling, Or Stooping11 
1Walking More Than A Mile11 
1Walking Several Blocks01 
1Pain01 
1Total Score616
1Walking One Block11 
1Limitations Of Activities11 
2Moderate Activities12 
2Climbing Several Flights Of Stairs22 
2Bending, Kneeling, Or Stooping22 
2Walking More Than A Mile12 
2Walking Several Blocks12 
2Pain02 
2Total Score828
2Walking One Block12 

 

Much thanks for help.

1 REPLY 1
PeterClemmensen
Tourmaline | Level 20

Welcome to the SAS Communities 🙂

 

Do you want this to be in a new data set or is it for reporting purposes?

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!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

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