Actions

QS

Array filter/de: Difference between revisions

From LimeSurvey Manual

(Updating to match new version of source page)
(Updating to match new version of source page)
Line 6: Line 6:
'''Beschreibung'''
'''Beschreibung'''


The '''Array filter''' setting allows you to use any multiple choice question to select or set which responses are displayed in a subsequent list, array or multiple choice question.
<div class="mw-translate-fuzzy">
Die erweiterte Einstellung Matrix Filter erlaubt Ihnen von Teilnehmer gewählte Antworten aus einer Mehrfachauswahlfrage als Vorgaben für eine Matrix-, Listen- oder Mehrfachauswahl zu benutzen, z.B. um eine weitergehende Beurteilung zu erhalten.
</div>


<div class="simplebox">The subsequent questions can be filtered on any array question type, including:
<div class="mw-translate-fuzzy">
*Multiple choice
<div class="simplebox">Ab 1.92 können die nachfolgenden Fragetypen gefiltert werden auf Basis jedes Matrix-Fragetypen inklusive:
*Multiple choice with comments
*Mehrfachauswahl
*Multiple short text
*Mehrfachauswahl mit Kommentaren
*Multiple numeric
*Mehrfache kurze Texte
*Array (5 point, 10 point, Yes/No/Unknown, Increase/Same/Decrease, Column)
*Mehrfach numerische Eingabe
*Array (Dual Scale, Text, Numbers)
*Matrix (5 Punkt 10 Punkt, Ja/Nein/Unbekannt Abnahme/Gleich/Zunahme, Spalte)
*Ranking
*Matrix  (Doppel-Skala, Text, Zahlen)
*Reihenfolge
</div>


Furthermore, each of these question types can be filtered.
<div class="mw-translate-fuzzy">
Außerdem kann jeder dieser Fragetypen an sich gefiltert werden.
</div>


The only exception is ''Array (Column)'', which can filter other questions, but not itself.</div>
<div class="mw-translate-fuzzy">
Die einzige Ausnahme ist der Array (nach Spalte)-Fragetyp, der andere Fragen filtern kann, aber selbst nicht gefiltert werden kann.</div>
</div>


'''How to set a filter'''
<div class="mw-translate-fuzzy">
'''Filter setzen'''
</div>


To set a filter, enter the question code of a multiple options question in the array filter box of the question you are currently editing. The respective question will be used as the source of information for the current question, the selected answers from the previous question being retrieved and used as answer options for the current question. '''For example''', if your source multiple option question code is "Q1", enter "Q1" into the 'Array Filter' box to start the filtering process of the answers. Only the answer options that are selected in question Q1 will be visible in the array_filter-ed question.
<div class="mw-translate-fuzzy">
Geben Sie den Fragencode einer Mehrfachauswahlfrage in das Textfeld für den 'Matrix Filter' ein. Wenn z.B. die Mehrfachauswahl den Code "Q1" hat, geben Sie "Q1" in das Textfeld für 'Matrix Filter' oder für 'Matrix Ausschlussfilter' in den '''erweiterten Einstellungen''' der Frage ein, für die Sie filtern wollen, ein.
Ihre gefilterte Frage wird dann nur noch die Antworten anzeigen die in der vorherigen Frage gewählt wurden.
</div>


<div class="simplebox">If you wish more questions to be filtered via this option, type the question codes in the box separated by semicolons (;). </div>
<div class="simplebox">If you wish more questions to be filtered via this option, type the question codes in the box separated by semicolons (;). </div>


{{Alert|Title=Attention|text=The subquestion codes used in the first question must coincide with the subquestion codes from the second one. Otherwise, the '''array filter''' function will not filter the answers to the first question. Check the below example to better understand how the whole system works.}}
{{Alert|Title=Attention|text=The subquestion codes used in the first question must coincide with the subquestion codes from the second one. Otherwise, the '''array filter''' function will not filter the answers to the first question. Note: When you want to filter the "other" answer option from the first question, you need to provide a subquestion for this answer in the second question and the subquestion code for this answer needs to be "other". Check the below example to better understand how the whole system works.}}
 
<div class="simplebox">If multiple choice allow other setting: you can choose '''other''' for subquestion code and filter with other checked or not.</div>


'''Kaskadierung'''
'''Kaskadierung'''


The selected options can be displayed in cascade. This means that you can select a question which filters another question, which filters another question, and so on.
<div class="mw-translate-fuzzy">
Der Matrix Filter funktioniert kaskadierend, d.h. dass Sie eine Frage auswählen können, die eine andere filtert, die wiederum eine andere filtert usw..
</div>


'''Matrix Filter Beispiel'''
'''Matrix Filter Beispiel'''
Line 38: Line 55:




<center>[[File:array_filter_with_multipe_short_text.jpg]]</center>
<div class="mw-translate-fuzzy">
[[File:array_filter_with_multipe_short_text.jpg]]
</div>




Line 46: Line 65:
</onlyinclude>
</onlyinclude>


[[Category:Question Settings]][[Category:Question Logic Options]]
<div class="mw-translate-fuzzy">
[[Category:Question Settings/de]][[Category:Advanced Question Settings/de]]
</div>

Revision as of 10:31, 12 October 2022


Matrix Filter (array_filter)

Beschreibung

Die erweiterte Einstellung Matrix Filter erlaubt Ihnen von Teilnehmer gewählte Antworten aus einer Mehrfachauswahlfrage als Vorgaben für eine Matrix-, Listen- oder Mehrfachauswahl zu benutzen, z.B. um eine weitergehende Beurteilung zu erhalten.

Ab 1.92 können die nachfolgenden Fragetypen gefiltert werden auf Basis jedes Matrix-Fragetypen inklusive:
  • Mehrfachauswahl
  • Mehrfachauswahl mit Kommentaren
  • Mehrfache kurze Texte
  • Mehrfach numerische Eingabe
  • Matrix (5 Punkt 10 Punkt, Ja/Nein/Unbekannt Abnahme/Gleich/Zunahme, Spalte)
  • Matrix (Doppel-Skala, Text, Zahlen)
  • Reihenfolge

Außerdem kann jeder dieser Fragetypen an sich gefiltert werden.

Die einzige Ausnahme ist der Array (nach Spalte)-Fragetyp, der andere Fragen filtern kann, aber selbst nicht gefiltert werden kann.

Filter setzen

Geben Sie den Fragencode einer Mehrfachauswahlfrage in das Textfeld für den 'Matrix Filter' ein. Wenn z.B. die Mehrfachauswahl den Code "Q1" hat, geben Sie "Q1" in das Textfeld für 'Matrix Filter' oder für 'Matrix Ausschlussfilter' in den erweiterten Einstellungen der Frage ein, für die Sie filtern wollen, ein. Ihre gefilterte Frage wird dann nur noch die Antworten anzeigen die in der vorherigen Frage gewählt wurden.

If you wish more questions to be filtered via this option, type the question codes in the box separated by semicolons (;).
  The subquestion codes used in the first question must coincide with the subquestion codes from the second one. Otherwise, the array filter function will not filter the answers to the first question. Note: When you want to filter the "other" answer option from the first question, you need to provide a subquestion for this answer in the second question and the subquestion code for this answer needs to be "other". Check the below example to better understand how the whole system works.


If multiple choice allow other setting: you can choose other for subquestion code and filter with other checked or not.

Kaskadierung

Der Matrix Filter funktioniert kaskadierend, d.h. dass Sie eine Frage auswählen können, die eine andere filtert, die wiederum eine andere filtert usw..

Matrix Filter Beispiel

Let's take a look at the following example to better understand the power of this setting:



In the screenshot from above, we got two questions. The first one is a multiple short text question type, while the second one is an array dual scale question type. The answers you provide in the first question will be listed in the second one. Technically, the answers you provide to the subquestions from the first question are filtered and displayed in the second question.

This example can be downloaded from the following link: limesurvey_group_32.lsg. Import this question group into your LimeSurvey installation.