Welcome to the LimeSurvey Community Forum

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

Other option, Count & Relevance equations

More
8 years 5 months ago #152592 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.
More
8 years 5 months ago - 8 years 5 months ago #152612 by tpartner
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: 8 years 5 months ago by tpartner.
The topic has been locked.
More
8 years 5 months ago #152622 by BBCMResearch
Thanks for the quick response, works perfectly!
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose