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 / Relating lookup tables...
Power Apps
Unanswered

Relating lookup tables (joining tables and displaying selected data)

(0) ShareShare
ReportReport
Posted on by

Hello there, 

 

I'm very new to PowerApps, and would love to get some help on something!

I have a single page app that I have built using the "look-up customer" as a template starting point.

On the left hand side I have a gallery that is showing all of the customers in the database as I would like. When you click on one of them, the right side of the screen is populated with other data within that same table - this all works great!

What I would like to do is display another table underneath the already populated table, that uses the customer name as the linking/relationship. This table is a record that can be linked to a customer, and there is usually one record per customer, sometimes more than one, so this would be a many to one (many records, one customer) relationship. (all data is coming from my dataverse tables)

So in an ideal world - you could search through the customers, click the one you want, and see info from one table like name, date created, customer ID etc (from the customer table) and then a readout of all the records there are in relation to that customer and some details about that record (eg record name, record status, comments about record etc from the records table)

 

I have a drop down under the customer name from the records table, and it lets me select a customer, but I would like this to be autofilled, and display the data ONLY linking to that customer.

I have tried writing;

 

RecordsGallery1.Selected.'Customer Name' 

 

but got "Expected Table value. The property on this control expects Table values, The rule produces Text values which are incompatible"

 

If there is another way to do this please let me know! 🙂 thank you so much!

Categories:
I have the same question (0)
  • BDallas Profile Picture
    74 on at

    @toristevens13 you can use the Filter function to filter the records table based on the selected customer name.Set the Items property of the table control to the following formula:

    Filter('Records Table', 'Customer Name' = RecordsGallery1.Selected.'Customer Name')

    This formula filters the records table based on the selected customer name in the gallery control and displays only the records that are linked to that customer. Ensure to replace 'Records Table'  with the name of your records table, and  'Customer Name' with the name of the column in the records table that contains the customer name.

    Replace 'RecordsGallery1' with the name of your gallery control that displays the customers.

     

     Let me know if this works for you. @ me in replies, or I'll lose your thread!!!  
    Note: 
    If this post is helpful, please mark it as the solution to help others find it easily. Also, if my answers contribute to a solution, show your appreciation by giving it a thumbs up
  • jrletner Profile Picture
    720 Moderator on at

    @toristevens13 ,

     

    If it wants a table, try placing that inside square brackets:    [RecordsGallery1.Selected.'Customer Name']

    If that doesn't help, a screenshot of your screen, dropdown code, etc. might help in solving your issue.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard