Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
en:create:filter-itemcount [19.11.2014 13:47] – alexander.ritter | en:create:filter-itemcount [28.11.2014 13:24] – alexander.ritter |
---|
====== At Least One Item Selected ====== | ====== At Least One Item Selected ====== |
| |
It is sometimes not enough to check individual answers for a filter; all the items in a question have to be looked at. Whether it be to look up corresponding items in another question ([[filter-items|Use Selected Items in Another Question]]) or just to check whether at least one item fulfills a particular condition. An exception to this is the calculation of scale indices within the survey ([[points|Count Points for Answers]]). | Sometimes, it is not sufficient for a filter to check individual answers; but rather all the items in a question have to be looked at. Whether it be to look up corresponding items in another question ([[filter-items|Use Selected Items in Another Question]]) or just to check whether at least one item fulfils a particular condition. An exception to this is the calculation of scale indices within the survey ([[points|Count Points for Answers]]). |
| |
This chapter describes the function ''getItems()'' and so-called loops -- two tools which allow sophisticated filters over multiple items. The starting point of this chapter is the following question TF04: a scale. The scale's values and the item IDs are shown in the image for additional information. | This chapter describes the function ''getItems()'' and so-called loops -- two tools which allow sophisticated filters over multiple items. The starting point of this chapter is the following question TF04: a scale. The scale's values and the item IDs are shown in the image for additional information. |
{{:de:create:scr.filter-itemcount.png?nolink|Filter Question with Multiple Relevant Items}} | {{:de:create:scr.filter-itemcount.png?nolink|Filter Question with Multiple Relevant Items}} |
| |
The task is now to check if the respondent uses at least one medium at least once a month. Of course, this could be done with 6 individual conditions linked using the AND (''and'') ([[filter-boolean|Linking Multiple Conditions]]). How this can be achieved faster and more elegantly is described below. | The task is now to check if the respondent uses at least one medium at least once a month. Of course, this could be done with 6 individual conditions linked using the AND operator (''and'') ([[filter-boolean|Linking Multiple Conditions]]). How this can be achieved faster and more neatly is described below. |
| |
===== Abstract ===== | ===== Abstract ===== |