cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Foxzor
Helper II
Helper II

Build a collection, filtering data

Hello,

 

I have a two drop down field (Projects, Part number)

 

I would like to that if I select something to Projects filter the data and only show those Part numbers what are relevant for selected Projects. Example: Select "A" for Projects and the Part number drop down list only listed only 1,2,3,4,5. (example information attached)

 

thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@Foxzor 

Set your Items property of the Project Dropdown to:  RenameColumns(Distinct(yourDataSource, Projects), "Result", "Projects")

 

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

4 REPLIES 4
RandyHayes
Super User III
Super User III

@Foxzor 

Set your Items property of the Project Dropdown to:  yourDataSource.Projects

Set your Items property of the Part Number Dropdown to: Filter(yourDataSource, Projects=yourProjectDropdown.Selected.Projects).'Part Number'

 

There is no need for a Collection.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Hello @RandyHayes 

Thank you! It is working. One question : How to make that Projects only shows data without duplication (Like "A" in my example) 

RandyHayes
Super User III
Super User III

@Foxzor 

Set your Items property of the Project Dropdown to:  RenameColumns(Distinct(yourDataSource, Projects), "Result", "Projects")

 

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

@RandyHayes Thank you so much. It worked! I am very appreciating your quick and great support. What a great community.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (34,275)