# Filter multiple sheets by choice component

**URL:** https://community.glideapps.com/t/filter-multiple-sheets-by-choice-component/70728
**Category:** Ask for Help
**Created:** [February 11, 2024, 11:18pm UTC](https://community.glideapps.com/t/filter-multiple-sheets-by-choice-component/70728 "2024-02-11T23:18:32Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Mozzie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mozzie/32/17519_2.png) [@Mozzie](https://community.glideapps.com/u/Mozzie)
#### Post date: [February 11, 2024, 11:18pm UTC](https://community.glideapps.com/t/filter-multiple-sheets-by-choice-component/70728/1 "2024-02-11T23:18:32Z")

</div>

Hi

I have 2 product sheets (1 for each manufacturer) with 2 inline list components sourcing data from each respectively. It was easier from a backend management perspective to do it this way.

As per pic I would like to use a choice component to filter the lists eg if I choose one manufacturer then only that list will be visible. I understand how to do it with a single sheet but I’m not sure how to do it with multiple sheets.

 ![Screenshot 2024-02-12 at 9.01.57 am](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/0/809d3c5fa08ea8cfa4bc84231905be5ae8d6c0bd.jpeg)

Has anybody done this and if so can you point me to a resource or give me some guidance as to how to do it?

Thanks in advance

Cheers

Mike

---

<div class="post-metadata">

### Author: ![nathanaelb](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nathanaelb/32/43079_2.png) [@nathanaelb](https://community.glideapps.com/u/nathanaelb)
#### Post date: [February 11, 2024, 11:56pm UTC](https://community.glideapps.com/t/filter-multiple-sheets-by-choice-component/70728/2 "2024-02-11T23:56:42Z")

</div>

> [@Mozzie](#):
>
> I have 2 product sheets (1 for each manufacturer) with 2 inline list components sourcing data from each respectively. It was easier from a backend management perspective to do it this way.
> 
> I understand how to do it with a single sheet but I’m not sure how to do it with multiple sheets.

Is there a reason why all product items are not in one single sheet?

You could you use a 1-row helper table with user-specific columns to store the choice selected in the choice component and display one collection or the other with visibility conditions. But really, back to the original question: why not store all the products in one single table and then use an in-app filter?

---

<div class="post-metadata">

### Author: ![Mozzie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mozzie/32/17519_2.png) [@Mozzie](https://community.glideapps.com/u/Mozzie)
#### Post date: [February 12, 2024, 12:14am UTC](https://community.glideapps.com/t/filter-multiple-sheets-by-choice-component/70728/3 "2024-02-12T00:14:47Z")

</div>

Hi and thanks for your reply. I used 2 sheets so far (More to be added) as it was far easier from a data management perspective. Each manufacturer has completely different specs with different options and gets updated periodically. It was easier to maintain it separately.

---

<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: [February 12, 2024, 1:54am UTC](https://community.glideapps.com/t/filter-multiple-sheets-by-choice-component/70728/4 "2024-02-12T01:54:30Z")

</div>

As Nathanael suggested, you should be able to use your choice component to drive opposite visibility conditions on the two collections.

---

<div class="post-metadata">

### Author: ![Mozzie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mozzie/32/17519_2.png) [@Mozzie](https://community.glideapps.com/u/Mozzie)
#### Post date: [February 12, 2024, 7:41am UTC](https://community.glideapps.com/t/filter-multiple-sheets-by-choice-component/70728/5 "2024-02-12T07:41:21Z")

</div>

Hi and thanks for your reply.  
As advised what I did was

1. Created a sheet for the choice text and within the choice column I wrote the choices. In my case manufacturers names.
2. Created a column called (In my case) manufacturer in the users table to write the chosen name to. I set it as user-specific column so it acts independently of each user.
3. Within the app I used a choice component. The choice component writes to the new column in the users table (manufacturer) and picks from the choices (manufacturers) in the new sheet.

Because I have 1 sheet per manufacturer I also have multiple list components which each pulls data from their corresponding manufacturer sheet.

1. I then set a visibility condition in each list component. The visibility condition in my case is:  
Show component when UserProfile\>Manufacturer\>includes\> Manufacturer Name.Do step 4 for each inline list.

Set the choice component to dropdown, chip or radio button. Whatever you prefer. Select the choice and boom. It works…at least for this use case.  
Thank you all for your advice. Hopefully the above explanation can help someone else  
cheers

 ![Screenshot 2024-02-12 at 5.43.31 pm](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/f/0f9a0b091e423f6d69b7e960fb1e9e68511d043f.jpeg)

---

<div class="post-metadata">

### Author: ![nathanaelb](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nathanaelb/32/43079_2.png) [@nathanaelb](https://community.glideapps.com/u/nathanaelb)
#### Post date: [February 12, 2024, 8:20am UTC](https://community.glideapps.com/t/filter-multiple-sheets-by-choice-component/70728/6 "2024-02-12T08:20:25Z")

</div>

The way you did it is exactly what Darren and I were suggesting, so good job with the implementation.

If you want to update your post, in step 2, the Manufacturers column in the Users table can be user-specific. If the column is user-specific, the filter will also be user-specific. If the column is global, then the filter will be global (the same for all users).

---

<div class="post-metadata">

### Author: ![Mozzie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mozzie/32/17519_2.png) [@Mozzie](https://community.glideapps.com/u/Mozzie)
#### Post date: [February 12, 2024, 10:57am UTC](https://community.glideapps.com/t/filter-multiple-sheets-by-choice-component/70728/7 "2024-02-12T10:57:41Z")

</div>

Thank you. Updated

---

<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: [February 19, 2024, 10:57am UTC](https://community.glideapps.com/t/filter-multiple-sheets-by-choice-component/70728/8 "2024-02-19T10:57:53Z")

</div>

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