cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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

Thank you this helped me!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,373)