5 years 9 months ago #73874 by achellis
achellis created the topic: Question About Assessment Sum
Survey System Version : 1.92 RC3

I've got a survey with questions like this:

Q0001. Blah blah blah
A. Very Good (assessment = 10)
B. Good (assessment = 7 )
C. Normal ( assessment = 5 )
D. Just So So ( assessment = 3 )
E. Bad (assessment = 0 )

Q0002. Just like above

And I'd configured an equation to sum the score:
sum(if(Q0005.NAOK == 'A', 10, 0), if(Q0005.NAOK == 'B', 7, 0), if(Q0005.NAOK == 'C', 5, 0), if(Q0005.NAOK == 'D', 3, 0),if(Q0002.NAOK...)......)

The question is : is there any more convenient way to do this function like:
sum (Q0001.assessment_Value + Q0002.assessment_Value ... ) ?

5 years 9 months ago - 5 years 9 months ago #73879 by Steve01
Steve01 replied the topic: Question About Assessment Sum
Hello,

I think there are variables called Qcode.value and Qcode.valueNAOK so it might be an idea to try one of these.
docs.limesurvey.org/Expression+Manager#Access_to_Variables

Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team
Last Edit: 5 years 9 months ago by Steve01.
The following user(s) said Thank You: achellis

5 years 9 months ago #73880 by Mazi
Mazi replied the topic: Question About Assessment Sum
Once you have found a better solution please post it here.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

5 years 9 months ago #73886 by achellis
achellis replied the topic: Question About Assessment Sum

vierundzwanzig wrote: Hello,

I think there are variables called Qcode.value and Qcode.valueNAOK so it might be an idea to try one of these.
docs.limesurvey.org/Expression+Manager#Access_to_Variables

Very useful, exactly fits, thanks !

5 years 9 months ago #73889 by Mazi
Mazi replied the topic: Question About Assessment Sum

achellis wrote:

vierundzwanzig wrote: Hello,

I think there are variables called Qcode.value and Qcode.valueNAOK so it might be an idea to try one of these.
docs.limesurvey.org/Expression+Manager#Access_to_Variables

Very useful, exactly fits, thanks !

You're welcome

If our hints have been helpful and you enjoy limesurvey please consider a donation to the team .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.

Best regards/Beste Grüße,
Dr. Marcel Minke