Welcome to the LimeSurvey Community Forum

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

Different assessment values for subquestions in multiple choice

  • riccardom
  • riccardom's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #201957 by riccardom
How can I set different assessment values for each subquestion in multiple choice question? The assessment value option only accepts one number. I have seen 8+ years old examples that allowed that but I can't find that option now. I've also seen using the Expression Manager to sum the single values of each answer but what I need is to sum that to the total assessment score and not just get the single assessment score of each question.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #201959 by Joffm
Hi,
sum up your values by EM.
Different scores in a multiple question? No problem
Either:
sum(if(Q1_SQ001.NAOK=="Y",1,0),if(Q1_SQ002.NAOK=="Y",3,0),if(Q1_SQ003.NAOK=="Y",7,0),...

or
{sum(
intval(Q1_SQ001.NAOK=="Y") *1,
intval(Q1_SQ002.NAOK=="Y") *3,
intval(Q1_SQ003.NAOK=="Y") *7,

)}

Now you have the score of one multiple question with different weights.
You may save this score by setting this in a question of type equation (named i.e. "scoreQ1")

Later you may sum all your single scores {sum(soreQ1,scoreQ2,scoreQXXX,...)}

Generally Expression Manager is much more flexible and powerful than this "old" assessment feature.

Joffm

Read the manual about ExpressionScript / Manager and also study the sample surveys about EM.
manual.limesurvey.org/ExpressionScript_sample_surveys

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: riccardom
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose