Welcome to the LimeSurvey Community Forum

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

Subquestions value

  • zhtway
  • zhtway's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 1 month ago - 11 years 1 month ago #91657 by zhtway
Subquestions value was created by zhtway
Hello,
I want to get subquestions value and compute in the formula.
My question code is lets say Q1.
Array (number) subquestions are

SQ1 SQ2
T1 xxx xxx
T2 xxx xxx

What will be the correct formula for those four cells
Last edit: 11 years 1 month ago by zhtway.
The topic has been locked.
  • zhtway
  • zhtway's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 1 month ago #91658 by zhtway
Replied by zhtway on topic Subquestions value and default value
Hi,
I change my logic a bit after finding out {sum(that.Qcode.NAOK)} command.
Q0 will get the total value.
and Q1 array group will collect all the numbers.
Compare Q0.value and {sum(that.Qcode.NAOK)} value to show Q2 or not.
But Q2 Relevance formula is not working. I use {sum(that.Qcode.NAOK)=Q0.value}.
What is wrong?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 1 month ago #91666 by tpartner
Replied by tpartner on topic Subquestions value and default value
Try:
Code:
sum(that.Qcode.NAOK) == Q0.value

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose