Welcome to the LimeSurvey Community Forum

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

Other option, Count & Relevance equations

  • BBCMResearch
  • BBCMResearch's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 12 hours ago #152592 by BBCMResearch
Other option, Count & Relevance equations was created by BBCMResearch
I have a relevance equation that needs to show a group if any option, including "other" is checked in a previous multiple choice question, and for the life of me I cannot figure out how to do it.


On a related note, I have a hidden question that sums the number of check boxes in that same question, in order to tailor question text as follows:

if(Q5Count == "1", 'has the individual', 'have the individuals')

How do I ensure that the "other" option is included in the count equation?

Thanks!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 11 months ago - 6 years 11 months ago #152612 by tpartner
Replied by tpartner on topic Other option, Count & Relevance equations
Assuming the mutiple-choice question code is "Q5", this expression will return a count of checked items including "Other":

Code:
{count(that.Q5)}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 6 years 11 months ago by tpartner.
The topic has been locked.
  • BBCMResearch
  • BBCMResearch's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 11 months ago #152622 by BBCMResearch
Replied by BBCMResearch on topic Other option, Count & Relevance equations
Thanks for the quick response, works perfectly!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose