Welcome to the LimeSurvey Community Forum

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

Maximum score for multiple choice question

  • douglasepr
  • douglasepr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 9 months ago #217811 by douglasepr
Maximum score for multiple choice question was created by douglasepr
I have a question that the maximum score is 20. Each alternative score is equal 6.67. So, if the respondent check 3 alternatives he would score 20, because 3 * 6.67 = 20. If he check 4 or more alternatives the score would be 20 still. How can I set this situation?
 
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 9 months ago #217819 by tpartner
Replied by tpartner on topic Maximum score for multiple choice question
Using for example a question code "Q1", place this in an equation question:

Code:
{if(count(that.Q1) < 3, count(that.Q1)*6.67, 20)}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: douglasepr
The topic has been locked.
  • douglasepr
  • douglasepr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 9 months ago #217820 by douglasepr
Replied by douglasepr on topic Maximum score for multiple choice question
Thank you Tony!
Could you please check if I inserted the code in a correct way?

 
The topic has been locked.
  • douglasepr
  • douglasepr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 9 months ago #217821 by douglasepr
Replied by douglasepr on topic Maximum score for multiple choice question
And I still having a problem when I export the responses to excel. They are coming in the format showing in the First Picture, and I would like that the format comes as it's showed in the Second Picture (Just show the final score for the entire question).
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 9 months ago #217822 by tpartner
Replied by tpartner on topic Maximum score for multiple choice question

Thank you Tony!
Could you please check if I inserted the code in a correct way?
No, that code snippet is supposed to be in a new equation type question, not in the relevance field of your multiple-choice.

- manual.limesurvey.org/Question_type_-_Equation

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu, douglasepr
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose