Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

AIC by column

I have a 4 quetions. in Q1 Grid: 10 Row and 3 column ==> check box by row (minimum checks = 1 and Max = 3).
in Q2 I want AIC all Row select from Q1 column 1.
in Q3 I want AIC all Row select from Q1 column 2.
in Q4 I want AIC all Row select from Q1 column 3.

Is it possible? Please detail.
asked Jan 28 by Saroeun Bronze (1,440 points)

1 Answer

+1 vote
You can this code to achieve the above results. This is for Q2. Same way you can just reuse the code for Q3 and Q4 by just replacing c1 to c2 and c3 respectively.

Begin Unverified Perl

for(my $i=1;$i<11;$i++)
{
    if (VALUE("Q1_r".$i."_c1")==1)
    {
    ADD("Q1RowList",$i);
    }
   
}

End Unverified
answered Jan 28 by TarunKhanna Bronze (830 points)
...