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 / In a Gallery, how do I...
Power Apps
Unanswered

In a Gallery, how do I filter a datasource based on search of child field?

(0) ShareShare
ReportReport
Posted on by 114

I have a gallery that shows records from dataverse based on search fields. Most of the search fields is based on the main table, but one of the search fields is a dropdown control that lets user search for the location based on the child table field.

So it goes something like this:

 

Main table <-- [ childtable locationField(lookup) ] ---> Location Table

 

So the dropdown in the search, searches for the location. So in the Gallery I want to show records from the main table that has any of its child records with that location.

Categories:
I have the same question (0)
  • M_Ali_SZ365 Profile Picture
    1,110 on at

    Hi @bpw ,

    Try the Code Like This

    assuming your main table is called MainTable, your child table is called ChildTable, and the relationship is based on the LocationField:

    Filter(
    MainTable,
    LookUp(
    ChildTable,
    ParentRecordID = MainTableID && LocationField = Dropdown.Selected.Value
    ).LocationField = Dropdown.Selected.Value
    )

    replace MainTable, ChildTable, ParentRecordID, MainTableID, LocationField, and dropdown with your actual table and column names.

    Fuel our success! 🚀 Give a thumbs up and click 'Solution Accepted' to supercharge our community. Your actions speak volumes!
    Warm regards,
    Muhammad Ali

  • bp3378 Profile Picture
    114 on at

    thanks for your reply.  I was able to solve it using a filter within a filter.  

  • M_Ali_SZ365 Profile Picture
    1,110 on at

    @bpw ,

    If My Solution is helpful for you then accept please help for others 

    Fuel our success! 🚀 Give a thumbs up and click 'Solution Accepted' to supercharge our community. Your actions speak volumes!
    Warm regards,
    Muhammad Ali

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 765 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 272

Last 30 days Overall leaderboard