- Posts: 11756
- Thank you received: 2753
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
How to sum radio button answers
- holch
- Offline
- LimeSurvey Community Team
Less
More
4 years 9 months ago #185438
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
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.
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 0
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
Enclosed trhe lss-file.
BR,
Petteri
Attachments:
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12779
- Thank you received: 3940
4 years 9 months ago #185465
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
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
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 0
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
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.