- Posts: 44
- Thank you received: 3
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Assessments - count only the maximum value
- ch123
- Topic Author
- Offline
- Senior Member
Less
More
4 years 7 months ago #188662
by ch123
Assessments - count only the maximum value was created by ch123
Hi all.
I'm new to LimeSurvey... hopefully you could help me
My survey has 20 questions (scored from 1 to 5) and I need to show a total score at the end of the survey. So far I could use the assessments tool for it. But there are three subquestions in item 15 and I just want to count the highest value of the three answers into the total score.
Is this possible?
Thank you for any help!
I'm new to LimeSurvey... hopefully you could help me
My survey has 20 questions (scored from 1 to 5) and I need to show a total score at the end of the survey. So far I could use the assessments tool for it. But there are three subquestions in item 15 and I just want to count the highest value of the three answers into the total score.
Is this possible?
Thank you for any help!
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12892
- Thank you received: 3965
4 years 7 months ago #188684
by Joffm
As example:
If you have your answer options coded "1", "2",... and not "A1", "A2",...
and the answer options of the array as well,
you can use Expression Manager to calculate your score:
{sum(Q1.NAOK,Q2.NAOK,Q3.NAOK,...Q20.NAOK,max(Q21_SQ001.NAOK,Q21_SQ002.NAOK,Q21_SQ003.NAOK))}
Here I named your "item 15" with the subquestions "Q21".
But without knowing your exact structure ...
Best - as usual - is to send a small example of your survey as *.lss export.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Assessments - count only the maximum value
What type of question? List(radio)?My survey has 20 questions (scored from 1 to 5)
And what is this? An array - because of the subquestions?But there are three subquestions in item 15
As example:
If you have your answer options coded "1", "2",... and not "A1", "A2",...
and the answer options of the array as well,
you can use Expression Manager to calculate your score:
{sum(Q1.NAOK,Q2.NAOK,Q3.NAOK,...Q20.NAOK,max(Q21_SQ001.NAOK,Q21_SQ002.NAOK,Q21_SQ003.NAOK))}
Here I named your "item 15" with the subquestions "Q21".
But without knowing your exact structure ...
Best - as usual - is to send a small example of your survey as *.lss export.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: ch123
The topic has been locked.
- ch123
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 44
- Thank you received: 3
4 years 7 months ago #188703
by ch123
Replied by ch123 on topic Assessments - count only the maximum value
Hey Joffm.
Thank you, that worked perfectly!
Actually, I used an array for all the questions... but your solution still worked.
Thank you, that worked perfectly!
Actually, I used an array for all the questions... but your solution still worked.
The topic has been locked.
- ch123
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 44
- Thank you received: 3
4 years 7 months ago #188961
by ch123
Replied by ch123 on topic Assessments - count only the maximum value
Hey Joffm.
Maybe you could help me again... so far, I wrote the code for the score in a question text. Everything worked fine. But the score isn't stored in my answers and I can't see the score after exporting the data. I'm pretty sure that there is a solution, but I don't get it.
Thank you
Maybe you could help me again... so far, I wrote the code for the score in a question text. Everything worked fine. But the score isn't stored in my answers and I can't see the score after exporting the data. I'm pretty sure that there is a solution, but I don't get it.
Thank you
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12892
- Thank you received: 3965
4 years 7 months ago #188969
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Assessments - count only the maximum value
Use a question of type eqation.
Here you calculate the score.
Here you calculate the score.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.