# Filter choice options from multiple Boolean

**URL:** https://community.glideapps.com/t/filter-choice-options-from-multiple-boolean/33535
**Category:** Ask for Help
**Created:** [October 24, 2021, 7:19am UTC](https://community.glideapps.com/t/filter-choice-options-from-multiple-boolean/33535 "2021-10-24T07:19:14Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Dan76](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan76/32/15696_2.png) [@Dan76](https://community.glideapps.com/u/Dan76)
#### Post date: [October 24, 2021, 7:19am UTC](https://community.glideapps.com/t/filter-choice-options-from-multiple-boolean/33535/1 "2021-10-24T07:19:14Z")

</div>

Hey

Feel like I might be close but the logic is eluding me. 🤨

I have a list of events in a drop down choice list. The choice lists below this one contain names that are filtered according to the first selection. I have managed to filter the gender and age but cannot figure out how to also filter according to the specific events that have been checked in the Glide table.

 ![Capture.rfgthJPG](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/d/cd2b3e50e9afdfa12d064d20f7d8c191bb6d4982.jpeg)

 ![Cmjhnyuapture](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/a/ea496b59d2ef7e6e5189dd4adc55014c4f764db7.jpeg)

Ideally, only the names of the students taking part in the selected event would be shown in the drop down list.

Is this possible?

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [October 24, 2021, 8:40am UTC](https://community.glideapps.com/t/filter-choice-options-from-multiple-boolean/33535/2 "2021-10-24T08:40:21Z")

</div>

Where are you writing the choices from your 1st screenshot to? How do they relate to the 2nd one?

---

<div class="post-metadata">

### Author: ![Dan76](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan76/32/15696_2.png) [@Dan76](https://community.glideapps.com/u/Dan76)
#### Post date: [October 24, 2021, 9:10am UTC](https://community.glideapps.com/t/filter-choice-options-from-multiple-boolean/33535/3 "2021-10-24T09:10:51Z")

</div>

The gender is filtered through a name relation, as shown here: ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/2/42c3fe2ccce70713876433972baf68706632239c.png)

and the year level is filtered as per the steps in these pics

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/a/ea397437d31bbc15938feb95d08d97a05b73adf7.png)

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/4/845d125c0625d4ed685ff08507d8f68b1782bc16.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/4/34c7fb77fa59383ccd8c07e3452616e17cf075f4.png).

Works well, but I am hoping to use the checkbox info as well.

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [October 24, 2021, 9:12am UTC](https://community.glideapps.com/t/filter-choice-options-from-multiple-boolean/33535/4 "2021-10-24T09:12:33Z")

</div>

I’m not sure if I understand the full structure of your data. Let’s get a simple question done first. When I click the choice under “1st” in your first screenshot what options do I have?

---

<div class="post-metadata">

### Author: ![Dan76](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan76/32/15696_2.png) [@Dan76](https://community.glideapps.com/u/Dan76)
#### Post date: [October 24, 2021, 9:19am UTC](https://community.glideapps.com/t/filter-choice-options-from-multiple-boolean/33535/5 "2021-10-24T09:19:11Z")

</div>

A list of names drops down. These are filtered according to the option selected in the ‘Select Event’ drop down.

The app is for adding points in a competition with multiple events. The ‘1st’ choice is the person who came first, the ‘2nd’ is the person who came second etc.

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [October 24, 2021, 9:50am UTC](https://community.glideapps.com/t/filter-choice-options-from-multiple-boolean/33535/6 "2021-10-24T09:50:01Z")

</div>

So let’s say I select “Year 4 Girls Long Jump” then the choice component would only show those that is a member of “Year 4 Girls Long Jump” right? Then the 4 choices are basically to record the event results?

Next, I believe you haven’t shown this in your screenshots, how are you letting the users “filter” the app? What does that flow look like?

---

<div class="post-metadata">

### Author: ![Dan76](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan76/32/15696_2.png) [@Dan76](https://community.glideapps.com/u/Dan76)
#### Post date: [October 24, 2021, 10:16am UTC](https://community.glideapps.com/t/filter-choice-options-from-multiple-boolean/33535/7 "2021-10-24T10:16:25Z")

</div>

> [@ThinhDinh](#):
>
> So let’s say I select “Year 4 Girls Long Jump” then the choice component would only show those that is a member of “Year 4 Girls Long Jump” right? Then the 4 choices are basically to record the event results?

Yes, that’s correct.

The events and all the competitors in each event are set by the user in the days before the event begins. The user can set up nominations by going in the athlete list, selecting a student, and then assigning them their events.

And then, once each event is finished, results are entered. Points are assigned accordingly for champions and over house winners.

 ![Capg33ture](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/5/25a14d5577f2f4989898e26e457e2bc2734c0655.jpeg)

 ![Capkl;ture](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/5/1512ff422de4ff34f9a8627409877190f736925e.jpeg)

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [October 24, 2021, 10:19am UTC](https://community.glideapps.com/t/filter-choice-options-from-multiple-boolean/33535/8 "2021-10-24T10:19:31Z")

</div>

Just looking at this, what I think you might need to do is coerce all those boolean event columns into a single column that you can use as a filter for your student choice components.

You could do this using two extra columns in that same table:

- Firstly, a single value column that would take the value of your user specific column that has the event selection, and cast that across all rows.
- You then add an if-then-else column that looks at that single value and returns the value of the associated boolean column. Something like:  
– If single value is “Long Jump”, then long jump boolean  
– Else if single value is “High Jump”, then high jump boolean  
– etc, etc

You should then be able to use that if-then-else column as a filter, returning only those rows that have a true value.

---

<div class="post-metadata">

### Author: ![Dan76](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan76/32/15696_2.png) [@Dan76](https://community.glideapps.com/u/Dan76)
#### Post date: [October 24, 2021, 10:26am UTC](https://community.glideapps.com/t/filter-choice-options-from-multiple-boolean/33535/9 "2021-10-24T10:26:36Z")

</div>

Thanks. I had managed to get all the booleans in a single column and used it as a filter but it was not dynamic. I want it so that any user can change event types without breaking the logic.

I’ll try it as you suggested, cheers.

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [October 24, 2021, 10:29am UTC](https://community.glideapps.com/t/filter-choice-options-from-multiple-boolean/33535/10 "2021-10-24T10:29:29Z")

</div>

If you do it as I described it should be dynamic, as it’ll be driven by the value of the user specific column, which is in turn set by the first choice component.

---

<div class="post-metadata">

### Author: ![Dan76](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan76/32/15696_2.png) [@Dan76](https://community.glideapps.com/u/Dan76)
#### Post date: [October 24, 2021, 10:49am UTC](https://community.glideapps.com/t/filter-choice-options-from-multiple-boolean/33535/11 "2021-10-24T10:49:39Z")

</div>

Works! This is brilliant, thanks. 🤩

Used the ‘includes’ condition instead of an absolute ‘is’. Hope this doesn’t lead to the wrong data being displayed in some situations, but the other filters should hold it all in place.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/5/e5d2f6303c14924f5c9b17a5f71b9aeaec6628eb.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/3/d37fb1eee2eabfa1dec4ec3c07603569fc0cd247.png)

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/c/cc381852a5ca00a1fe7da4af4c7a89c249edede1.png)

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [October 24, 2021, 10:56am UTC](https://community.glideapps.com/t/filter-choice-options-from-multiple-boolean/33535/12 "2021-10-24T10:56:44Z")

</div>

> [@Dan76](#):
>
> Used the ‘includes’ condition instead of an absolute ‘is’. Hope this doesn’t lead to the wrong data being displayed in some situations,

Just a tip for the future to help avoid this possibility. Use two columns for your choices. A human readable value for display, and then an ID or something for the actual value that’s written to the user specific column. Then you can be more explicit when referring to the column and not have to worry about typos tripping things up.

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)
#### Post date: [October 25, 2021, 10:56am UTC](https://community.glideapps.com/t/filter-choice-options-from-multiple-boolean/33535/13 "2021-10-25T10:56:58Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
