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?