cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
iskguy
Helper IV
Helper IV

Display only records that match from another table

I do not know why I can wrap my head around this and maybe I am overthinking.  I have Table A that has a person's social security number.  I only want to display those person's whose SSN is in Master Table B.  Is this done with a ForAll? Or ClearCollect(SSNMatch,Filter(TableA,SSN=TableB.SSN) )?  

 

Thanks for the advice.

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @iskguy ,

This should do it

ForAll(
   TableA As aCol,
   Collect(
      colMyCol,
      LookUp(
         TableB,
         SSN = aCol.SSN
      )
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @iskguy ,

This should do it

ForAll(
   TableA As aCol,
   Collect(
      colMyCol,
      LookUp(
         TableB,
         SSN = aCol.SSN
      )
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

iskguy
Helper IV
Helper IV

Hello @WarrenBelz !  Funny that you post this solution as I just found another similar post where you offered the solution - a similar solution - and it works!  Thanks for your insight.

 

Brad

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 (2,720)