- Posts: 26
- Thank you received: 1
Ask the community, share ideas, and connect with other LimeSurvey users!
{sum(D1AQ1.NAOK=='Y', D1AQ2.NAOK=='Y') > sum(D2AQ1.NAOK=='Y', D2AQ2.NAOK=='Y') AND sum(D1AQ1.NAOK=='Y', D1AQ2.NAOK=='Y') > sum(D3AQ1.NAOK=='Y', D3AQ2.NAOK=='Y') AND sum(D1AQ1.NAOK=='Y', D1AQ2.NAOK=='Y') > sum(D4AQ1.NAOK=='Y', D4AQ2.NAOK=='Y') AND sum(D1AQ1.NAOK=='Y', D1AQ2.NAOK=='Y') > sum(D5AQ1.NAOK=='Y', D5AQ2.NAOK=='Y')}
holch wrote: I personally would create a equation question with the count of yes questions for each of the categories. It simplifies things and it saves the count in the database.
Then I would compare the values of these sums in another equation. I think it is a lot cleaner.
Without knowing exactly what your question types, question codes and answer codes are, we have no way of giving an accurate relevance expression. The example given above was just that - an example for you to work from.Some more tips, please
Where do array type questions come into it. Your depiction above indicates yes/no questions followed by some text-displays.I am wondering if the conditions don't support Array question type.
tpartner wrote:
Without knowing exactly what your question types, question codes and answer codes are, we have no way of giving an accurate relevance expression. The example given above was just that - an example for you to work from.Some more tips, please
Where do array type questions come into it. Your depiction above indicates yes/no questions followed by some text-displays.I am wondering if the conditions don't support Array question type.
{sum(D1A_DSUB01.NAOK == 'A1', D1A_DSUB02.NAOK == 'A1', ...
tpartner wrote: You need to use the answer codes in your sum statements, not the answer display value. So if the answer codes are A1 for Yes and A2 for No, something like this:
Code:{sum(D1A_DSUB01.NAOK == 'A1', D1A_DSUB02.NAOK == 'A1', ...