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 / 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:
  • 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

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 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard