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

Filter Gallery based on Drop Down n:n relationship

Hi Power Rangers !!

 

I'm creating a PowerApps and I created a Gallery. 

Now I would like to filter this gallery with a dropdown. Initially I  created a N:N relationship in the CDS but as I can see I can't filter based on a N:N relationship. 

 

Do you have an idea ? 

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @Elliott57 ,

Do you want to filter entity2 based on selected item of entity1 in a drop down?

If so, I've made a similar test for your reference:
my entity1 named students, my entity2 named teachers, their relationship is N:N

1)set the drop down's Items:

teachers

//entity1 name

2)set the gallery's Items:

Dropdown1.Selected.students

 //dropdownname.selected.entity2name

 

Then gallery will display related items of entity2 based on the selection of entity1 in drop down.

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yutliu-msft
Community Support
Community Support

Hi @Elliott57 ,

Do you want to filter entity2 based on selected item of entity1 in a drop down?

If so, I've made a similar test for your reference:
my entity1 named students, my entity2 named teachers, their relationship is N:N

1)set the drop down's Items:

teachers

//entity1 name

2)set the gallery's Items:

Dropdown1.Selected.students

 //dropdownname.selected.entity2name

 

Then gallery will display related items of entity2 based on the selection of entity1 in drop down.

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ok I will check this morning 🙂

 

If it works I will mark the solution !

Hi @Elliott57 ,

Have you solved your problem?
If you still have problem, you've welcome to post your idea here.

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,539)