cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Usernametwice23
Helper III
Helper III

Limit the Items in Second Combo Box Based on the Selected Item in Another

Hi all, 

 

I am trying to limit items displayed based off of a primary combo box selection. E.g If I have apples, pears and oranges and I select Apples in the first combo box, then I only want to display different varieties of apples in the second combo box. 

 

I am using an excel tables as the data source and have Apples, pears and oranges in the first table, and Varieties in the second table. 

 

Thank you all for the help! 

1 ACCEPTED SOLUTION

Accepted Solutions
RusselThomas
Microsoft
Microsoft

Hi @Usernametwice23,

If your second table contains a foreign key column for the parent category (a column that links it to the first table and contains first table lookup values - this might be "Apples" or "Pears" depending on how you've structured the relationship), then you should just be able to filter the second combo based on the selection of the first.

eg:

fruit.png

As long as your second table has that link to the parent in the form of a column, you can use it in your filter.

Combo2 Items: property would then be;

Filter(VarietyTable, ForeignKeyColumn=Combo1.Selected.Fruit)

Hope this helps,

RT

View solution in original post

2 REPLIES 2
RusselThomas
Microsoft
Microsoft

Hi @Usernametwice23,

If your second table contains a foreign key column for the parent category (a column that links it to the first table and contains first table lookup values - this might be "Apples" or "Pears" depending on how you've structured the relationship), then you should just be able to filter the second combo based on the selection of the first.

eg:

fruit.png

As long as your second table has that link to the parent in the form of a column, you can use it in your filter.

Combo2 Items: property would then be;

Filter(VarietyTable, ForeignKeyColumn=Combo1.Selected.Fruit)

Hope this helps,

RT

View solution in original post

Thank you this helped me!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,396)