# Filter choices from selections of more than one questions

**URL:** <https://forum.getodk.org/t/filter-choices-from-selections-of-more-than-one-questions/30876>\
**Category:** Support\
**Created:** [October 28, 2020, 8:53am UTC](https://forum.getodk.org/t/filter-choices-from-selections-of-more-than-one-questions/30876 "2020-10-28T08:53:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumaiya](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/s/a6a055/32.png) [@sumaiya](https://forum.getodk.org/u/sumaiya)\
**Post date:** [October 28, 2020, 8:53am UTC](https://forum.getodk.org/t/filter-choices-from-selections-of-more-than-one-questions/30876/1 "2020-10-28T08:53:30Z")

</div>

I have two questions  
Q1 has options  
A, B, C and D  
Q2 has options  
E, F, G and H

now in Q3, I want all the option choices the respondent selected in Q1 and Q2

For example: If he selected  
A & B in Q1  
E in Q2

then Q3 options should be  
A  
B  
E

Please let me know how to go about it. I'm stuck here for a very long time. Thank you

---

<div class="post-metadata">

**Author:** ![Grzesiek2010](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/grzesiek2010/32/2881_2.png) [@Grzesiek2010](https://forum.getodk.org/u/Grzesiek2010)\
**Post date:** [October 28, 2020, 9:58am UTC](https://forum.getodk.org/t/filter-choices-from-selections-of-more-than-one-questions/30876/2 "2020-10-28T09:58:39Z")

</div>

Hi @sumaiya  
welcome to the forum! Please [introduce yourself here!](https://forum.getodk.org/t/introduce-yourself-here/6671)

the value in choice\_filter will be pretty simple: `selected(${q1},name) or selected(${q2},name)`  
Here is a sample form:  
[filterTestForm-export.xlsx](https://forum.getodk.org/uploads/short-url/t8ZrsLClAKEISJQSahaNBgCEpB4.xlsx) (7.5 KB)

---

<div class="post-metadata">

**Author:** ![sumaiya](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/s/a6a055/32.png) [@sumaiya](https://forum.getodk.org/u/sumaiya)\
**Post date:** [November 1, 2020, 5:10pm UTC](https://forum.getodk.org/t/filter-choices-from-selections-of-more-than-one-questions/30876/3 "2020-11-01T17:10:46Z")

</div>

Thank you 🙏 @Grzesiek2010
