Quantcast
Channel: Topics in Category: Can I do this with LimeSurvey? - LimeSurvey forums
Viewing all articles
Browse latest Browse all 17529

Filter array by a specific column from a multicolumn multiple-choice question - by: socius

$
0
0
Dear all,

I'd like to filter an array by a multicolumn (actually 2 cols) multiple choice question, more concrete:

I have an array (numbers) in multiple choice/checkbox (0/1)-mode with two columns (and n rows) - lets call this array (q0), with variables q1_(1:n)_1 and q2_(1:n)_2. (Substantially I ask for a number of n activities (=rows) whether the respondents engage in these activities on weekdays and/or weekends (=2 columns, multiple choice)).

The subsequent two questions then are about the duration of these engagements on (q1) weekdays and on (q2) weekends respectively. So I have to filter and show only activities the respondents are engaged in on weekdays and weekends resp. I could filter each subquestion of q1 and q2 with specific relevance eqations for each row and the q0 weekdays / weekends, e.g. relevance equation for the first row of q1 is q0_1_1 == 1, for the second row q0_2_1 == 1, etc.

But as this is tedious when n is large: Is there a way to use the columns of q0 directly as array filter, something like q0_(1:n)_1, where (1:n) is a wildcard for all rownumbers?

Thanks a lot for your time!
Best, G

Viewing all articles
Browse latest Browse all 17529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>