Welcome to the LimeSurvey Community Forum

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

Counting number of subquestions answered

  • jma6610
  • jma6610's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 8 months ago #203724 by jma6610
I'm having a bit of a problem with an equation question in version 2.5. I have a multiple choice question (Question1) with 5 subquestions and want to know (within a later equation question) how many subquestions have been checked. I'm trying the syntax below and it doesn't seem to work. What am I doing wrong?

{Count(that.Question1)}
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago #203725 by Joffm
Replied by Joffm on topic Counting number of subquestions answered
Hi,
You have to use the correct function.
There is no function "Count", but a function "count".
Manual:
count count the number of answered (non-blank) questions in the list number count(arg1, arg12, ..., argN)

Hint: If an equation doesn't seem to work as expectd, write it into a text display question, e.g. your
{Count(that.Q1)}
You will get this with the explanation "undefined function"


And: which version do you use really?
There is no version 2.5.
Either it is 2.05 or one of the branch 2.50.x-2.73.x

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose