Welcome to the LimeSurvey Community Forum

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

sum assessment values

  • vector01
  • vector01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 5 months ago #100424 by vector01
sum assessment values was created by vector01
Everyone, I keep trying to use:

{sum(t1.value,t2.value)}

Where t1 and 2 are the question codes. Assessments for each are set to 1. When I run the survey, it doesn't seem to be counting my responses. Did I get the equation right above? It just displays "0" FYI.

If not, what would it be?

Is there an equation that would allow me to sum assessment values for a group?

Version 2.0, Build 130929

Thanks in advance!
The topic has been locked.
  • limesun
  • limesun's Avatar
  • Visitor
  • Visitor
10 years 5 months ago #100426 by limesun
Replied by limesun on topic sum assessment values
you can use sum(group1.value)
The topic has been locked.
  • vector01
  • vector01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 5 months ago #100455 by vector01
Replied by vector01 on topic sum assessment values
@limesun, thank you for your suggestion, however that doesn't seem to work.

The name of my group is "test"

I tried {sum(test.value)}

That just showed up in red both when I save and run it.

also I tried {sum(group1.value)}

thinking that maybe there was some group ID or something. Same result as above. Any other ideas?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 5 months ago #100459 by DenisChenu
Replied by DenisChenu on topic sum assessment values
Hi,
Can you upload a test survey, because i already use:
{sum(t1.value,t2.value)} without problem.

Look if you d'on't have other question with same code, and if you don't have other error.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: vector01
The topic has been locked.
  • vector01
  • vector01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 5 months ago #100471 by vector01
Replied by vector01 on topic sum assessment values
Thanks Denis,

The same thing you mentioned is working for me too. I read another post here:

www.limesurvey.org/en/forum/can-i-do-thi...culate-the-group-sum

That answers my question. I was trying to add up a group, and that doesn't work. I just summed all the questions, and it's working fine now. Thank you for the help!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose