Welcome to the LimeSurvey Community Forum

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

Save overall score for the statistics

  • mariaa
  • mariaa's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 1 month ago - 5 years 1 month ago #180943 by mariaa
Dear all,

I´ve created a survey and on the last page the overall score is calculated so that the participant can see how many answers he answered correctly.

Unfortunately this score is not saved in the statistis but I´d like to see an overview of the overall results for my participants. Is it possible to save the overall results so that I can display them in the statistis?

If yes, what would be an approach for this and what would the syntax look like?

my syntax for creating the overall score looks like this:
Code:
You scored correctly on {sum(if(a2.NAOK == "A2",1,0),if(Q00003.NAOK == "A1",1,0),if(a99.NAOK == "A7",1,0),if(A13.NAOK == "A4",1,0),if(A3_SQ001.NAOK=="A1" AND A3_SQ002.NAOK=="A1" AND A3_SQ003.NAOK=="A2" AND A3_SQ004.NAOK=="A2" AND A3_SQ005.NAOK=="A2",1,0),if(a15.NAOK == "A1",1,0),if(a17.NAOK == "A2",1,0),if(b1_1.NAOK=="A3" AND b1_2.NAOK=="A4" AND b1_3.NAOK=="A5" AND b1_4.NAOK=="A6" AND b1_5.NAOK=="A8" AND b1_6.NAOK=="A7",1,0),if(a30.NAOK == "A4",1,0), if(a55.NAOK == "A3",1,0))} of the 10 questions.

Please find here the test:

File Attachment:

File Name: limesurvey...2-24.lss
File Size:76 KB


Thanks a lot for your precious support! :)
Last edit: 5 years 1 month ago by mariaa. Reason: Attachment is not working
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago #180948 by Joffm
Replied by Joffm on topic Save overall score for the statistics
Hi,
already answered in your other question abour storing results.
Create questions of type equation. "eqTotalScore"

Here you have the question text
{sum(if(a2.NAOK == "A2",1,0),if(Q00003.NAOK == "A1",1,0),if(a99.NAOK == "A7",1,0),if(A13.NAOK == "A4",1,0),if(A3_SQ001.NAOK=="A1" AND A3_SQ002.NAOK=="A1" AND A3_SQ003.NAOK=="A2" AND A3_SQ004.NAOK=="A2" AND A3_SQ005.NAOK=="A2",1,0),if(a15.NAOK == "A1",1,0),if(a17.NAOK == "A2",1,0),if(b1_1.NAOK=="A3" AND b1_2.NAOK=="A4" AND b1_3.NAOK=="A5" AND b1_4.NAOK=="A6" AND b1_5.NAOK=="A8" AND b1_6.NAOK=="A7",1,0),if(a30.NAOK == "A4",1,0), if(a55.NAOK == "A3",1,0))}

Then the score is stored in the result table as "eqTotalScore".

Regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: cdorin, mariaa
The topic has been locked.
  • mariaa
  • mariaa's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 1 month ago #180972 by mariaa
Replied by mariaa on topic Save overall score for the statistics
Hi Joffm,


Thanks! I have now understood the principle of storing results. It´s working =)

K
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose