cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mammifero
Helper I
Helper I

Filter 2 Dataverse Table

Dear All, Good Morning

i'm a new kid in town, my little problem is the following

 

on Microsoft Dataverse i have 2 table: Account & Contact
relationship one (Account) to many (Contact)


i have created in PowerApps
gallery1 = for the Account
gallery2 = for the Contact

i'm in trouble to show in gallery2 only the Contact related to the Account that i have selected

Filter(Contact; ...

 

regards From Italy

1 ACCEPTED SOLUTION

Accepted Solutions
Mira_Ghaly
Dual Super User
Dual Super User

@Mammifero 

Another way to do this on the Items of Gallery 2 you can use the below expression:

 

Filter(Contacts,AsType('Company Name',[@Accounts]).Account = Gallery1.Selected.Account)

 

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

View solution in original post

2 REPLIES 2
Drrickryp
Super User
Super User

@Mammifero 

Set the Items property of Gallery2 to Gallery1.Selected.Contacts
1.jpg

Mira_Ghaly
Dual Super User
Dual Super User

@Mammifero 

Another way to do this on the Items of Gallery 2 you can use the below expression:

 

Filter(Contacts,AsType('Company Name',[@Accounts]).Account = Gallery1.Selected.Account)

 

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

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.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Users online (5,686)