Welcome to the LimeSurvey Community Forum

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

how to sum assessment values from Array questions?

  • Siem
  • Siem's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 4 months ago #160709 by Siem
My survey has 60 Array questions. For each question participants can choose 1 of 5 options.

The question codes a Q1 - Q60 and the answer codes A1 - A5 with a different assessment value for each answer code.


I want to sum all the assessment values from all of the answers in a calculation in a hidden equation, but nothing I have tried worked.

How should I do this?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago - 6 years 4 months ago #160711 by Joffm
What did you try?

Send your sample (*.lss)

And do you want to use the assessmant feature or calculte the sums with equations?

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 6 years 4 months ago by Joffm.
The following user(s) said Thank You: Siem
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago #160736 by Joffm
And something else:
manual.limesurvey.org/Expression_Manager...ager_for_Assessments

and

New Variable Attributes - you can access the following to do your tailoring:

(no suffix) - an alias for qcode.code
.code - the selected response code for the question if it is relevant (otherwise blank), or the text value if it is not a coded question
.NAOK - same as .code, but can be part of calculations or lists even if irrelevant
.value - the assessment value for the question if it is relevant (otherwise blank), or the text value if it is not a coded question
.valueNAOK - same as .value, but can be part of calculations or lists even if irrelevant


So, if you use assessment values, you get it by "Q1.value" or "Q1_SQ001.value" resp. with added NAOK.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: Siem
The topic has been locked.
  • Siem
  • Siem's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 3 months ago #160804 by Siem
Hi Joffm,

Thanks for the replies, I got the value by using "Q1_SQ001.value", now I can finish the survey :)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose