Hi,
I assume
"SQ003" and "SQ007" refer to two y-axis subquestions
"SQ013" is the code of your third column, the third x-axis subquestion.
Now, as you read here in the manual
[url]
www.limesurvey.org/manual/ExpressionScri...code_variable_naming
[/url]
The QCode consists of "
QuestionCode . '_' . SubQuestionID . '_' . ScaleId
So in your equation the question code is missing.
If you are not sure about it, activate your survey and have a look at the responses table.
Afterwards you deactivate it.
Should be something like this:
{Q1_SQ003_SQ013.NAOK+Q1_SQ007_SQ013.NAOK}
Now the improvements:
You should use the "sum" function to consider this
[url]
www.limesurvey.org/manual/ExpressionScri...ntation/en#Operators
[/url]
For consistency between JavaScript and PHP, the plus operator (+) does addition if both operands are numeric, but does concatenation if both parts are non-numeric strings. However, we recommend using the "join()" function for concatenation, as that makes your intent more clear. It also avoids unexpected results if you were expecting strings but got numbers instead (or vice versa).
In some (rare) cases
14+23=1423
So better
{sum(Q1_SQ003_SQ013.NAOK,Q1_SQ007_SQ013.NAOK)}
I personally prefer to code the x-axis and y-axis differently to avoid confusion
If you code the y-axis "Y001", "Y002", ... and the x-axis "X001" "X002",...
you can use the "self" and "that variables.
[url]
www.limesurvey.org/manual/ExpressionScri...%22that%22_variables
[/url]
To sum up all values of column 3 in an equation
{sum(that.sq_X003.NAOK)}
If I misunderstood please send the lss export of the survey (these relevant questions)
Joffm