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 / Struggle to find a way...
Power Apps
Unanswered

Struggle to find a way to filter gallery from 3 tables

(0) ShareShare
ReportReport
Posted on by 141

Hi, 

I am battled to return Person name in gallery called galleryMeetings. So we have 3 table which it already include in data source) that contain have (table Name): ID

Meetings: RoleID (foreign key)  

Role:RoleID (primary key), PersonID (foreign key)

Persons: PersonID (Primary Key), PersonName

Basically, I am looking to display PersonName on Gallery. 

So the Meetings:RoleID equal to Role:RoleID and Role:PersonID is equal to Person:PersonID. 

So I'm trying to use formula to filter this in Items on galleryMeetings

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @spiderkzn 

    It will be difficult to disambiguate your relationships in a formula if you use the exact same name as both the primary and foreign key in your tables.  INHO, it would be best practice have the Primary key of a table simply be ID and the foreign keys to be the name of the ParentTableID.  That being said, are you planning on using cascading dropdowns to obtain your result? 

  • spiderkzn Profile Picture
    141 on at

    Thank you forreply. 

    Yes that right I'm planning to use dropdown. if it possible? 

    dropdown is ddlPerson so it should contain PersonName but the PersonID should link to PersonID in Role, and in Role the RoleID should link to RoleID in Meeting. 

    If it possible? 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @spiderkzn 

    So, if I am understanding, One meeting can have many roles and one role can have many persons?

  • spiderkzn Profile Picture
    141 on at

    Yes each meeting will have many Role but each Role will have one Person. (see table below)

    Meeting TableRole TablePerson
    RoleID (have many)RoleID (primary key) 
     PersonID (foreign key)PersonID (primary key)
      PersonName

     

    Therefore, I'm looking to display PersonName on dropdown on Meeting Table. 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    If you have a gallery with the meeting table as its Items property and it contains a dropdown, Dropdown1 say, with its item property:

    Filter('Role Table',RoleID = ThisItem.RoleID) and it shows the Role name in the window, you can add a label and set its Text property to Lookup(Person, PersonID = Dropdown1.Selected.PersonID).PersonName.  

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard