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

Notifications

Announcements

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

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:
I have the same question (0)
  • 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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard