web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Show all records relat...
Power Apps
Answered

Show all records related to parent table, with filter on the parent

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

This is probably a common scenario and I have tried to search for answer, but probably using wrong terminology.

 

I have parent and child tables where child have foreign key pointing to parent's primary key.

 

But how can I show all child records based on a filter on the parent?

 

Guess there are at least two ways to do this and I would like to see both

1. I already have a collection of the parent items filtered the way I'd like. How can I create a collection of the child records, filtered by the ones in the parent collection?

2. How can I create this in one query (collection) in case I don't need the parent collection and avoid overhead?

 

Thanks!

Categories:
  • Verified answer
    Meneghino Profile Picture
    6,949 on at

    Hi @Anonymous

    Use the in operator, something like:

    Filter(ChildTable, ForeignKey in ParentItemCollection.Id)

    Please note that the in operator is not delegated for any data source when used for membership test (the delegation table is incorrect in this regard)

     

    PS Using a collection is not a bad idea from a performance point of view

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Of course! Same as SQL. How could I forget. I was thinking way to complex!  Thanks!

  • Meneghino Profile Picture
    6,949 on at

    You are welcome, please see my blog for PowerApps and Azure SQL Database info:

    https://baizini-it.com/blog/

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 339 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard