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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 754 views
  • 0 likes
  • 2 in conversation