# Multiple choice and assessment value

3 years 4 months ago #122632
lorenz1974 created the topic: Multiple choice and assessment value
Hi all,

I'm trying to solve a matter but I'm not able. Probably the answer is very simple but I'm a LimeSurvey newbies.
I have a 5 items multiple choice and I need to give an assesment value to that question if two specific answers of five are flagged.
I tryed many different approaches but {assessment_CURRENT_TOTAL} is always 0.

Question is Q1
Subquestions s1, s2, s3, s4, s5
s1 gives 1 point
s2 gives 1 point
s3,s4,s5 give zero point

I tryed :
• sum(if(Q1_s1=="Y",1,0),if(Q1_s2=="Y",1,0))
• sum(Q1_s1,Q1_s2)
• count (Q1_s1.NAOK,Q1_s2.NAOK)
• sum(!is_empty(Q1_s1.NAOK),!is_empty(Q1_s1.NAOK))
• ...
but nothing!

Could anyone help me?

Thank you very much!

L

3 years 4 months ago #122634 by tpartner
tpartner replied the topic: Multiple choice and assessment value
How did you apply different assessment values to multiple-choice sub-questions?

Without using assessments, you should be able to use this equation:
`{sum(Q1_s1.NAOK == 'Y', Q1_s2.NAOK == 'Y')}`

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

3 years 4 months ago #122636
lorenz1974 replied the topic: Multiple choice and assessment value
Hi Tpartner,

I did it, but it seems not to work. I have already tryed your solotion.

I have enabled the assessment mode, I have placed the formula {sum(D_b21.NAOK == 'Y', D_d21.NAOK == 'Y')} in the "assessment value" field of the single question in the survey, but nothing, {assessment_CURRENT_TOTAL}, {TOTAL} and {PERC} are always 0, if I consider them globally or for the single group.

You have my survey TEST in attach. Could you give a look?

Thank you very much!

L
##### Attachments:

3 years 4 months ago - 3 years 4 months ago #122637 by tpartner
tpartner replied the topic: Multiple choice and assessment value
In a multiple-choice type question, you cannot use an equation for the assessment value. It must be numeric and that value will be added to the assessment total for EVERY sub-question that is checked.

You will need to use Expression Manager and an equation similar to the one I gave to display variable messages depending on what is checked in the question.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 3 years 4 months ago by tpartner.

3 years 4 months ago #122638
lorenz1974 replied the topic: Multiple choice and assessment value
Sorry Tpartner but I don't understand what you mean, technically speaking.
I don't need to display variable messages during the survey even if I'm able to do that using your formula.
I need to show at the end of survey an assessment with 4 different messages based on the score of the survey which in turn is based also on more multiple questions choices.
Could you give me some tips to do that?
Thanks you!!

L

3 years 4 months ago #122644 by tpartner
tpartner replied the topic: Multiple choice and assessment value
You can use Expression Manager to display variable text anywhere in the survey including in the End Message. I think you will find it far more flexible than assessments.

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