Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Score each question and answer

  • BITCNI
  • BITCNI's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 2 months ago #212049 by BITCNI
Score each question and answer was created by BITCNI
I'm sure this has been asked a lot, based on searches, but all the questions seem to be variations on such, so I apologize in advance if this exact quesiton has been asked but I couldn't see it when doing a search!

All I need to know is whether we can assign a score to each question's answers.
All our questions are similar, eg, "Do you have X Policy and if so, at what level?".  People may answer as follows:
Option 1: No, we don't have this policy
Option 2: Yes, we have this Policy, but we've only started to implement it
Option 3: Yes, and we've had it for years
Option 4: Yes, and it's reported on at Board level.

So, Option 1 might score zero points; Option 2 might score 1 point; Option 3 might score 5 points; etc.

Can we assign a score to each Option in each quesiton and then calculate an overall score, ie, if there are 10 questions, a respondent might finish with 25 points, when summing all their answers.

Thanks, and sorry for a probable duplicate question!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago #212056 by Joffm
Replied by Joffm on topic Score each question and answer
Hi, there are two options.

1. Code your answer options accordingly
 
Then you use the function "sum" to sum up all questions.
{sum(Q1.NAOK,Q2.NAOK,Q3.NAOK,...,Qn.NAOK)}

2. Use assessment values
Enable "assessment mode" in "notification & data"
Use the assessment values
 
Now you sum up but using the assessment values, which you access by QCode.value resp. QCode.valueNAOK
See here
[url] manual.limesurvey.org/ExpressionScript_-...#Access_to_variables [/url]
{sum(Q1.valueNAOK,Q2.valueNAOK,Q3.valueNAOK,...,Qn.valueNAOK)}

By the way: The NAOK is important if there are some questions not answered.
Without NAOK (No answer is OK) the sum will fail.

Joffm

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • BITCNI
  • BITCNI's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 2 months ago #212090 by BITCNI
Replied by BITCNI on topic Score each question and answer
Oh, wow! That is AMAZING! Thank you so much. I've enabled the Assessment Values, so we'll look at using that.

Thank you SO MUCH for your prompt and excellent answer.
Have a great day :)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose