Welcome to the LimeSurvey Community Forum

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

How to sum radio button answers

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago #185438 by holch
Replied by holch on topic How to sum radio button answers
Please always provide a LSS file. This makes it just so much easier for the helpers here in the forum. If you provide only a lsq file, we as the helpers can not just import it to our system, but need to create a survey first, then a question group and then we can import it into our survey. If we are unlucky, your lsq is not in the language we have created the survey in and thus can not be imported, so more work for us.

So, please create a copy of your survey, delete all unnecessary questions and question groups and just leaf the parts that are necessary to understand you problem.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • Petteri66
  • Petteri66's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 9 months ago #185452 by Petteri66
Replied by Petteri66 on topic How to sum radio button answers
I'm sorry for my mistake! The difference and difficulties with lsq-file was not known for me.

Enclosed trhe lss-file.

BR,

Petteri
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago #185465 by Joffm
Replied by Joffm on topic How to sum radio button answers
Hi, petteri,
it's a typical "GIGO" (Garbage in - Garbage out) error, which nobody of us would have found without seeing your survey.

Your codes in question q4 are °1°, "2", "3", "4", but in the equation you compare with "A1", "A2",...
So, either you change your equation accordingly:
Bucket 1: sum(if(q4 == 4, 1, 0), if(q5 == "A4", 1, 0), if(q6 == "A1", 1, 0), if(q7 == "A4", 1, 0))

or you change the codes of question q4.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Petteri66
  • Petteri66's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 9 months ago #185470 by Petteri66
Replied by Petteri66 on topic How to sum radio button answers
Hi Joffm,

thank you for your help and being so patient! GIGO is well said. Unfortenately I'm not so skilled in the coding. I'll make the changes.

Again, a big thank you.


Petteri
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose