Welcome to the LimeSurvey Community Forum

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

show results after each group

  • FSoave
  • FSoave's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 6 days ago #215103 by FSoave
show results after each group was created by FSoave
Hi, a have 3 sets of 5 groups containing questions. Can I add a page to show the partial results between each set?
So you would complete the first 5 groups then have a page showing results (i.e. how many right answers you gave) then move on the following group.

Thanks
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 days ago #215107 by Joffm
Replied by Joffm on topic show results after each group
Why not.
Question of type "text display".
Enter results by Expression Manager.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • FSoave
  • FSoave's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 6 days ago #215108 by FSoave
Replied by FSoave on topic show results after each group
thanks! where do I find examples of using the expression manager for such thing?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 days ago #215109 by holch
Replied by holch on topic show results after each group
In the manual there are several sections that explain the expression manager and there are loads of examples, even with LSS downloads so you can have a look at the examples in a real survey.
manual.limesurvey.org/ExpressionScript_-_Presentation
manual.limesurvey.org/Expression_Manager
manual.limesurvey.org/Expression_Manager_sample_surveys

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

The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • FSoave
  • FSoave's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 4 days ago #215199 by FSoave
Replied by FSoave on topic show results after each group
Thanks I've managed to do it with the following:

<p>You got: {sum(if(INSERTANS:926488X746X2301==1,1,0), if(INSERTANS:926488X741X2291==1,1,0), if(INSERTANS:926488X736X2281==1,1,0), if(INSERTANS:926488X725X2260==2,1,0), if(INSERTANS:926488X730X2270==2,1,0), if(INSERTANS:926488X721X2252==2,1,0))} / 6 correct answers in this set.</p>

I'm now trying to end the survey if that value is below a certain number. Can I also do that with expression manager? I'm not sure how to refer to the 'end' of the survey.
Thanks
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 days ago #215270 by holch
Replied by holch on topic show results after each group
There are two interpretations of what you want to do:
1. You want to screen people out --> Quota, more specifically "Zero quota". The will not make it to the end page of your survey, but rather get an alternative end.
2. You do not want to screen them out, but send the respondents to the end page. Then you will need to use relevance equations (either on a group or a question level) to hide all following questions until the end page.

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.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 days ago #215282 by Joffm
Replied by Joffm on topic show results after each group
By the way:
Your
{sum(if(INSERTANS:926488X746X2301==1,1,0), if(INSERTANS:926488X741X2291==1,1,0), if(INSERTANS:926488X736X2281==1,1,0), if(INSERTANS:926488X725X2260==2,1,0), if(INSERTANS:926488X730X2270==2,1,0), if(INSERTANS:926488X721X2252==2,1,0))}

can be shortened to
(and do not use these INSERTANS stuff; use the question code. It is much easier to read)
{sum(countif("1",Q1.NAOK,Q2.NAOK,Q3.NAOK),countif("2",Q4.NAOK,Q5.NAOK,Q6.NAOK))}

@holch already showed the links to Expression Manager.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • FSoave
  • FSoave's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 11 months ago #215364 by FSoave
Replied by FSoave on topic show results after each group
Hi the formula with countif doesn't seem to be working.
Assuming question codes are "q1", "q2"..."q6"

You got: {sum(if(INSERTANS:774328X936X2664==1,1,0), if(INSERTANS:774328X939X2670==1,1,0), if(INSERTANS:774328X940X2672==1,1,0), if(INSERTANS:774328X937X2666==2,1,0), if(INSERTANS:774328X938X2668==2,1,0), if(INSERTANS:774328X941X2674==2,1,0))} / 6 correct answers in this set.


test:{sum(countif("1",q1.NAOK,q4.NAOK,q5.NAOK),countif("2",q2.NAOK,q3.NAOK,q6.NAOK))}

the second formula always returns 0
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose